|
|
@ -746,11 +746,16 @@ Network.prototype._create = function () { |
|
|
|
this.hammer.on('dragstart', me._onDragStart.bind(me) ); |
|
|
|
this.hammer.on('drag', me._onDrag.bind(me) ); |
|
|
|
this.hammer.on('dragend', me._onDragEnd.bind(me) ); |
|
|
|
this.hammer.on('release', me._onRelease.bind(me) ); |
|
|
|
this.hammer.on('mousewheel',me._onMouseWheel.bind(me) ); |
|
|
|
this.hammer.on('DOMMouseScroll',me._onMouseWheel.bind(me) ); // for FF
|
|
|
|
this.hammer.on('mousemove', me._onMouseMoveTitle.bind(me) ); |
|
|
|
|
|
|
|
this.hammerFrame = Hammer(this.frame, { |
|
|
|
prevent_default: true |
|
|
|
}); |
|
|
|
|
|
|
|
this.hammerFrame.on('release', me._onRelease.bind(me) ); |
|
|
|
|
|
|
|
// add the frame to the container element
|
|
|
|
this.containerElement.appendChild(this.frame); |
|
|
|
|
|
|
|