From af1579ba7c339792d216be42f8c06f9c7d20cd43 Mon Sep 17 00:00:00 2001 From: jos Date: Mon, 20 Apr 2015 10:10:02 +0200 Subject: [PATCH] Updated test file --- lib/hammerUtil.js | 2 ++ test/timeline.html | 28 ++++++++++++++++++++-------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/lib/hammerUtil.js b/lib/hammerUtil.js index 66f9dfb1..9a2f1615 100644 --- a/lib/hammerUtil.js +++ b/lib/hammerUtil.js @@ -43,6 +43,8 @@ exports.onRelease = function (hammer, callback) { return hammer.on('hammer.input', callback.inputHandler); }; + + // isReleasing is true while a release action is being emitted // this is a hack to prevent `release` from being fired twice var isReleasing = false; diff --git a/test/timeline.html b/test/timeline.html index 595ffac7..401ea8f7 100644 --- a/test/timeline.html +++ b/test/timeline.html @@ -20,23 +20,23 @@ /*background: rgba(255, 255, 0, 0.5);*/ } - .vis.timeline .item.range .drag-left, - .vis.timeline .item.range .drag-right { - width: 40px; + .vis-timeline .vis-item.vis-range .vis-drag-left, + .vis-timeline .vis-item.vis-range .vis-drag-right { + /*width: 40px;*/ background: rgba(255,255,255,0.5); } - #visualization .grid.vertical.odd { + #visualization .vis-grid.vis-vertical.odd { background: #f5f5f5; } - #visualization .grid.vertical.saturday, - #visualization .grid.vertical.sunday { + #visualization .vis-grid.vis-vertical.saturday, + #visualization .vis-grid.vis-vertical.sunday { background: gray; } - #visualization .text.saturday, - #visualization .text.sunday { + #visualization .vis-text.saturday, + #visualization .vis-text.sunday { color: white; } @@ -106,6 +106,18 @@ end: now.clone().add(7, 'days').toDate(), title: 'hello title!' }, + { + _id: 4.1, content: 'item 4.1 test overflow foo bar foo bar foo bar foo bar foo bar', + start: now.clone().add(0, 'days').toDate(), + end: now.clone().add(1, 'days').toDate(), + title: 'hello title!' + }, + { + _id: 4.2, content: 'item 4.2 test overflow foo bar foo bar foo bar foo bar foo bar', + start: now.clone().add(1, 'days').toDate(), + end: now.clone().add(1, 'days').add(1, 'minutes').toDate(), + title: 'hello title!' + }, {_id: 5, content: 'item 5', start: now.clone().add(9, 'days').toDate(), type:'point', title: 'hello title!'}, {_id: 6, content: 'item 6', start: now.clone().add(11, 'days').toDate()} ]);