Home Reference Source Test

src/gestures/Pinch.js

  1. /**
  2. * @file Pinch.js
  3. * Contains the Pinch class
  4. */
  5.  
  6. import Distance from './Distance.js';
  7. import util from './../core/util.js';
  8.  
  9. /**
  10. * An Pinch is defined as two inputs moving closer to each other. This gesture does
  11. * not account for any start/end events to allow for the event to interact with the Pan and Pinch
  12. * events.
  13. * @class Pinch
  14. */
  15. class Pinch extends Distance {
  16. /**
  17. * Constructor function for the Pinch class.
  18. */
  19. constructor(options) {
  20. super(options);
  21.  
  22. /**
  23. * The type of the Gesture.
  24. * @type {String}
  25. */
  26. this.type = 'pinch';
  27.  
  28. }
  29.  
  30. }
  31.  
  32. export default Pinch;