Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/thomas/fix-issue-10884'
Browse files Browse the repository at this point in the history
Conflicts:
	package-lock.json
	package.json
  • Loading branch information
vinaynb committed Mar 22, 2018
2 parents c62282f + effe15d commit be958ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@
"test:full": "gulp karma",
"lint": "eslint ."
}
}
}
8 changes: 7 additions & 1 deletion src/core/services/gesture/gesture.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ var HANDLERS = {};
* as well as other information abstracted from the DOM.
*/

var pointer, lastPointer, forceSkipClickHijack = false, maxClickDistance = 6;
var pointer, lastPointer, maxClickDistance = 6;
var forceSkipClickHijack = false, disableAllGestures = false;

/**
* The position of the most recent click if that click was on a label element.
Expand Down Expand Up @@ -52,6 +53,10 @@ function MdGestureProvider() { }

MdGestureProvider.prototype = {

disableAll : function() {
disableAllGestures = true;
},

// Publish access to setter to configure a variable BEFORE the
// $mdGesture service is instantiated...
skipClickHijack: function() {
Expand Down Expand Up @@ -512,6 +517,7 @@ function MdGestureHandler() {
* @ngInject
*/
function attachToDocument( $mdGesture, $$MdGestureHandler ) {
if ( disableAllGestures ) return;

// Polyfill document.contains for IE11.
// TODO: move to util
Expand Down

0 comments on commit be958ff

Please sign in to comment.