Prerequisites
Ionic Framework Version
Current Behavior
When setting dir="rtl" or dir="ltr", an active page(pages which are already opened as well) does not change swipe gesture direction but animation direction does.
Expected Behavior
Swipe gesture should change it's direction from rtl to ltr and vice versa
Steps to Reproduce
- Open page
- Change language direction in the app (dir attribute)
- Check opened page
Code Reproduction URL
No response
Ionic Info
"@ionic/angular": "6.5.0",
"@ionic/core": "6.5.0",
Additional Information
Happens because the rtl property calculated only once during page init and never recalculated.
export const createSwipeBackGesture = (
el: HTMLElement,
canStartHandler: () => boolean,
onStartHandler: () => void,
onMoveHandler: (step: number) => void,
onEndHandler: (shouldComplete: boolean, step: number, dur: number) => void
): Gesture => {
const win = el.ownerDocument!.defaultView!;
const rtl = isRTL(el); <----
Prerequisites
Ionic Framework Version
Current Behavior
When setting
dir="rtl"ordir="ltr", an active page(pages which are already opened as well) does not change swipe gesture direction but animation direction does.Expected Behavior
Swipe gesture should change it's direction from rtl to ltr and vice versa
Steps to Reproduce
Code Reproduction URL
No response
Ionic Info
"@ionic/angular": "6.5.0",
"@ionic/core": "6.5.0",
Additional Information
Happens because the rtl property calculated only once during page init and never recalculated.