Skip to content

Commit fd473f2

Browse files
paulijarsusnux
authored andcommitted
fix(core): legacy app navigation snapper width on RTL
After ec9e283 there was still such a problem with the legacy app navigation snapper that its width was only 266 px on the RTL layout instead of the normal 300 px. The 266 px is the default width of Snap.js module. While the left side snapper width is configured with the property maxPosition, the right side snapper is configured by passing a negative value for the property minPosition. Signed-off-by: Pauli Järvinen <[email protected]>
1 parent 5b60bb2 commit fd473f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/init.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export const initCore = () => {
122122
element: document.getElementById('app-content'),
123123
disable: SNAPPER_CLOSE,
124124
maxPosition: 300, // $navigation-width
125+
minPosition: -300, // $navigation-width for RTL
125126
minDragDistance: 100,
126127
})
127128

0 commit comments

Comments
 (0)