Переглянути джерело

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

dev
Bryan Miller 7 роки тому
джерело
коміт
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;

Завантаження…
Відмінити
Зберегти