Browse Source

Added a comment

codeClimate
jos 8 years ago
parent
commit
3d4b1dc538
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      lib/hammerUtil.js
  2. +1
    -1
      test/timeline.html

+ 3
- 0
lib/hammerUtil.js View File

@ -50,6 +50,9 @@ exports.offRelease = exports.offTouch;
/** /**
* Hack the PinchRecognizer such that it doesn't prevent default behavior * Hack the PinchRecognizer such that it doesn't prevent default behavior
* for vertical panning. * for vertical panning.
*
* Yeah ... this is quite a hack ... see https://github.com/hammerjs/hammer.js/issues/932
*
* @param {Hammer.Pinch} pinchRecognizer * @param {Hammer.Pinch} pinchRecognizer
* @return {Hammer.Pinch} returns the pinchRecognizer * @return {Hammer.Pinch} returns the pinchRecognizer
*/ */

+ 1
- 1
test/timeline.html View File

@ -120,7 +120,7 @@
'<div onclick="alert(\'you clicked a div\'); ">Click here! (div)</div>', start: now.clone().add(-2, 'days').toDate() }, '<div onclick="alert(\'you clicked a div\'); ">Click here! (div)</div>', start: now.clone().add(-2, 'days').toDate() },
{_id: 3, content: 'item 3', start: now.clone().add(2, 'days').toDate(), style: 'color: red;'}, {_id: 3, content: 'item 3', start: now.clone().add(2, 'days').toDate(), style: 'color: red;'},
{ {
_id: 4, content: 'item 4 foo bar foo bar foo bar foo bar foo bar',
_id: 4, content: 'item 4 foo bar foo bar foo bar foo bar foo bar <a href="http://visjs.org">Normal link</a>',
start: now.clone().add(0, 'days').toDate(), start: now.clone().add(0, 'days').toDate(),
end: now.clone().add(7, 'days').toDate(), end: now.clone().add(7, 'days').toDate(),
title: 'hello title!' title: 'hello title!'

Loading…
Cancel
Save