8000 fix(gestures): Remove preventDefault as it disables scroll in iOS · code-tree/material@78c0a93 · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit 78c0a93

Browse files
committed
fix(gestures): Remove preventDefault as it disables scroll in iOS
1 parent d97349e commit 78c0a93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/services/gesture/gesture.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function MdGesture($$MdGestureHandler, $$rAF, $timeout) {
169169
* Register handlers. These listen to touch/start/move events, interpret them,
170170
* and dispatch gesture events depending on options & conditions. These are all
171171
* instances of GestureHandler.
172-
* @see GestureHandler
172+
* @see GestureHandler
173173
*/
174174
return self
175175
/*
@@ -253,7 +253,7 @@ function MdGesture($$MdGestureHandler, $$rAF, $timeout) {
253253
// If we don't preventDefault touchmove events here, Android will assume we don't
254254
// want to listen to anymore touch events. It will start scrolling and stop sending
255255
// touchmove events.
256-
ev.preventDefault();
256+
// ev.preventDefault(); YET this disables scroll in iOS so not using...
257257

258258
if (!this.state.dragPointer) {
259259
if (this.state.options.horizontal) {
@@ -496,7 +496,7 @@ function attachToDocument( $mdGesture, $$MdGestureHandler ) {
496496
* click event will be sent ~400ms after a touchend event happens.
497497
* The only way to know if this click is real is to prevent any normal
498498
* click events, and add a flag to events sent by material so we know not to prevent those.
499-
*
499+
*
500500
* Two exceptions to click events that should be prevented are:
501501
* - click events sent by the keyboard (eg form submit)
502502
* - events that originate from an Ionic app

0 commit comments

Comments
 (0)
0