Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremieForge committed Jul 14, 2021
1 parent 88eec5a commit 9dfc305
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions WebApps/S6-MULTIPLAYER/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ function attachPinch(indexDisplay){
var offset = wrapper.offset();

// ENABLE PINCH
var hamObj = new Hammer($(wrapper)[0]);
hamObj.get('pinch').set({ enable: true });
$(wrapper).data("hammer", hamObj);
// var hamObj = new Hammer($(wrapper)[0]);
// hamObj.get('pinch').set({ enable: true });
// $(wrapper).data("hammer", hamObj);
// ENABLE PINCH
// var hamObj2 = new Hammer($(image)[0]);
// hamObj2.get('pinch').set({ enable: true });
// $(image).data("hammer", hamObj);
var hamObj2 = new Hammer($(image)[0]);
hamObj2.get('pinch').set({ enable: true });
$(image).data("hammer", hamObj);


$(image).hammer().on("pinch", function(event) {
Expand Down

0 comments on commit 9dfc305

Please sign in to comment.