Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 4acef53

Browse files
Splaktarmmalerba
authored andcommitted
fix(gesture): maximum call stack size exceeded on click w/ Tal… (#11774)
stop click hijacking from entering an infinite event loop Fixes #11768
1 parent 0284b13 commit 4acef53

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
@@ -388,8 +388,8 @@ function MdGesture($$MdGestureHandler, $$rAF, $timeout) {
388388
* A gesture will manage its lifecycle through the start,move,end, and cancel
389389
* functions, which are called by native dom events.
390390
*
391-
* A gesture has the concept of 'options' (eg a swipe's required velocity), which can be
392-
* overridden by elements registering through $mdGesture.register()
391+
* A gesture has the concept of 'options' (eg. a swipe's required velocity), which can be
392+
* overridden by elements registering through $mdGesture.register().
393393
*/
394394
function GestureHandler (name) {
395395
this.name = name;
@@ -436,8 +436,8 @@ function MdGestureHandler() {
436436
},
437437
end: function (ev, pointer) {
438438
if (!this.state.isRunning) return;
439-
this.onEnd(ev, pointer);
440439
this.state.isRunning = false;
440+
this.onEnd(ev, pointer);
441441
},
442442
cancel: function (ev, pointer) {
443443
this.onCancel(ev, pointer);

0 commit comments

Comments
 (0)