Просмотр исходного кода

Input updated to call the 'mouseup' event last, to remain consistant with all other events.

dev
Bryan Miller 6 лет назад
Родитель
Сommit
1d3024c167
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      app/js/ui/Input.js

+ 2
- 2
app/js/ui/Input.js Просмотреть файл

button: button, button: button,
delta: 0, delta: 0,
action: "mouseup" action: "mouseup"
}
this.__emitter.emit("mouseup", data);
}
if (diff <= MOUSECLICK_DELAY && this.__mouseButtons.length <= 0){ if (diff <= MOUSECLICK_DELAY && this.__mouseButtons.length <= 0){
this.__emitter.emit("mouseclick", data); this.__emitter.emit("mouseclick", data);
} }
this.__emitter.emit("mouseup", data);
} }
} }
return false; return false;

Загрузка…
Отмена
Сохранить