Added test for null in Timeline.onMove

This commit is contained in:
Uwe Oestermeier 2019-07-10 14:20:58 +02:00
parent 1e17184194
commit 6e77f0ec58

View File

@ -781,6 +781,9 @@ export default class Timeline extends BitmapLabeledGraphics {
onMove(event, interaction) { onMove(event, interaction) {
let delta = interaction.delta() let delta = interaction.delta()
if (delta == null) {
return
}
this.scroll += delta.x this.scroll += delta.x
while (this.deltas.length > 10) { while (this.deltas.length > 10) {
this.deltas.pop(0) this.deltas.pop(0)