We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37b8422 commit 125bda0Copy full SHA for 125bda0
js/dragger.js
@@ -48,9 +48,12 @@ Dragger.prototype.create = function( options ) {
48
49
Dragger.prototype.bindDrag = function( element ) {
50
element = this.getQueryElement( element );
51
- if ( element ) {
52
- element.addEventListener( downEvent, this );
+ if ( !element ) {
+ return;
53
}
54
+ // disable browser gestures #53
55
+ element.style.touchAction = 'none';
56
+ element.addEventListener( downEvent, this );
57
};
58
59
Dragger.prototype.getQueryElement = function( element ) {
0 commit comments