Open chenlijun99 opened 6 years ago
Have you tried the following?
angular.module('MyApp', ['ngMaterial', 'ngMessages'])
.config(function($mdGestureProvider) {
// For mobile devices without jQuery loaded, do not
// intercept click events during the capture phase.
$mdGestureProvider.skipClickHijack();
});
I've added it to the CodePen. It still doesn't work though.
OK, thanks for giving it a shot.
Bug
By registering a event listener with this:
I encountered following problems:
What is the expected behavior?
What is the current behavior?
CodePen and steps to reproduce the issue:
CodePen Demo which shows your issue:
Detailed Reproduction Steps:
Note: the number is the yellow area represents the times "$md.drag" is fired.
What is the use-case or motivation for changing an existing behavior?
Which versions of AngularJS, Material, OS, and browsers are affected?
Angular material 1.1.8 Angularjs 1.6.9 Google Chrome Version 63.0.3239.108 (Official Build) (64-bit)
Is there anything else we should know? Stack Traces, Screenshots, etc.