From b6dfdfeed7e01399cc2b23c9401c161f773bc2f0 Mon Sep 17 00:00:00 2001 From: Gwyn Judd Date: Thu, 4 May 2017 07:47:46 +1200 Subject: [PATCH] Fixed touchaction test page Would get this error: hammer.js:355 Uncaught TypeError: Cannot call a class as a function at classCallCheck (file:///C:/Users/gjudd/Develop/github/hammer.js/hammer.js:355:11) at Hammer (file:///C:/Users/gjudd/Develop/github/hammer.js/hammer.js:2886:3) at file:///C:/Users/gjudd/Develop/github/hammer.js/tests/manual/touchaction.html:76:22 at Array.forEach (native) at Function.each (file:///C:/Users/gjudd/Develop/github/hammer.js/hammer.js:178:9) at file:///C:/Users/gjudd/Develop/github/hammer.js/tests/manual/touchaction.html:73:16 --- tests/manual/touchaction.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/manual/touchaction.html b/tests/manual/touchaction.html index 4c68be03b..60de49e92 100644 --- a/tests/manual/touchaction.html +++ b/tests/manual/touchaction.html @@ -71,7 +71,7 @@

touch-action: none

Hammer.each(touchActions, function(touchAction) { var el = document.getElementById(touchAction.replace(" ", "-")); - var mc = Hammer(el, { + var mc = new Hammer(el, { touchAction: touchAction }); mc.get('pan').set({ direction: Hammer.DIRECTION_ALL });