Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. //touch events
  2. /*self.$elem.bind('touchmove', function(e){
  3. e.preventDefault();
  4. var touch = e.originalEvent.touches[0] || e.originalEvent.changedTouches[0];
  5. self.setPosition(touch);
  6.  
  7. });
  8. self.zoomContainer.bind('touchmove', function(e){
  9. if(self.options.zoomType == "inner") {
  10. self.showHideWindow("show");
  11.  
  12. }
  13. e.preventDefault();
  14. var touch = e.originalEvent.touches[0] || e.originalEvent.changedTouches[0];
  15. self.setPosition(touch);
  16.  
  17. });
  18. self.zoomContainer.bind('touchend', function(e){
  19. self.showHideWindow("hide");
  20. if(self.options.showLens) {self.showHideLens("hide");}
  21. if(self.options.tint && self.options.zoomType != "inner") {self.showHideTint("hide");}
  22. });
  23.  
  24. self.$elem.bind('touchend', function(e){
  25. self.showHideWindow("hide");
  26. if(self.options.showLens) {self.showHideLens("hide");}
  27. if(self.options.tint && self.options.zoomType != "inner") {self.showHideTint("hide");}
  28. });
  29. if(self.options.showLens) {
  30. self.zoomLens.bind('touchmove', function(e){
  31.  
  32. e.preventDefault();
  33. var touch = e.originalEvent.touches[0] || e.originalEvent.changedTouches[0];
  34. self.setPosition(touch);
  35. });
  36.  
  37.  
  38. self.zoomLens.bind('touchend', function(e){
  39. self.showHideWindow("hide");
  40. if(self.options.showLens) {self.showHideLens("hide");}
  41. if(self.options.tint && self.options.zoomType != "inner") {self.showHideTint("hide");}
  42. });
  43. } */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement