Browse Source

Item touch events now bound to centerContainer instead of itemset (must be able to click in empty area)

css_transitions
jos 10 years ago
parent
commit
c1179554fd
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/timeline/component/ItemSet.js

+ 4
- 2
src/timeline/component/ItemSet.js View File

@ -153,8 +153,10 @@ ItemSet.prototype._create = function(){
this._updateUngrouped();
// attach event listeners
// TODO: use event listeners from the rootpanel to improve performance?
this.hammer = Hammer(frame, {
// Note: we bind to the centerContainer for the case where the height
// of the center container is larger than of the ItemSet, so we
// can click in the empty area to create a new item or deselect an item.
this.hammer = Hammer(this.body.dom.centerContainer, {
prevent_default: true
});

Loading…
Cancel
Save