Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sidebar): dont resize on ios touchmove #2451

Draft
wants to merge 11 commits into
base: develop
Choose a base branch
from
3 changes: 3 additions & 0 deletions src/definitions/modules/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@
module.debug('Initializing sidebar', parameters);

module.create.id();
if (module.is.ios()) {
module.set.ios();
}

// avoids locking rendering if initialized in onReady
if (settings.delaySetup) {
Expand Down
4 changes: 4 additions & 0 deletions src/definitions/modules/sidebar.less
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ body.pushable > .pusher {
iOS
--------------- */

html.ios .ui.sidebar {
touch-action: @iOStouchAction;
}

/*******************************
Variations
*******************************/
Expand Down
2 changes: 2 additions & 0 deletions src/themes/default/modules/sidebar.variables
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
@topLayer: 102;
@dimmerLayer: 1000;

@iOStouchAction: pan-y;

/* -------------------
Variations
-------------------- */
Expand Down