|
|
@ -139,9 +139,27 @@ function Timeline (container, items, groups, options) { |
|
|
|
this.dom.root.onmouseover = function (event) { |
|
|
|
me.emit('mouseOver', me.getEventProperties(event)) |
|
|
|
}; |
|
|
|
this.dom.root.onmousemove = function (event) { |
|
|
|
me.emit('mouseMove', me.getEventProperties(event)) |
|
|
|
}; |
|
|
|
if(window.PointerEvent) { |
|
|
|
this.dom.root.onpointerdown = function (event) { |
|
|
|
me.emit('mouseDown', me.getEventProperties(event)) |
|
|
|
}; |
|
|
|
this.dom.root.onpointermove = function (event) { |
|
|
|
me.emit('mouseMove', me.getEventProperties(event)) |
|
|
|
}; |
|
|
|
this.dom.root.onpointerup = function (event) { |
|
|
|
me.emit('mouseUp', me.getEventProperties(event)) |
|
|
|
}; |
|
|
|
} else { |
|
|
|
this.dom.root.onmousemove = function (event) { |
|
|
|
me.emit('mouseMove', me.getEventProperties(event)) |
|
|
|
}; |
|
|
|
this.dom.root.onmousedown = function (event) { |
|
|
|
me.emit('mouseDown', me.getEventProperties(event)) |
|
|
|
}; |
|
|
|
this.dom.root.onmouseup = function (event) { |
|
|
|
me.emit('mouseUp', me.getEventProperties(event)) |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
//Single time autoscale/fit
|
|
|
|
this.fitDone = false; |
|
|
|