You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: js/utils/tap.js
+8
Original file line number
Diff line number
Diff line change
@@ -263,6 +263,14 @@
263
263
reset: function(){
264
264
tapCoordinates={};
265
265
startCoordinates={};
266
+
},
267
+
268
+
ignoreScrollStart: function(e){
269
+
return(e.defaultPrevented)||// defaultPrevented has been assigned by another component handling the event
270
+
(e.target.tagName.match(/input|textarea/i)&&ionic.tap.activeElement()===e.target)||// target is the active element, so its a second tap to select input text
271
+
(e.target.isContentEditable)||
272
+
(e.target.dataset ? e.target.dataset.preventScroll : e.target.getAttribute('data-prevent-default'))=='true'||// manually set within an elements attributes
273
+
(!!e.target.tagName.match(/object|embed/i));// flash/movie/object touches should not try to scroll
0 commit comments