Explorar el Código

Input mouse event data now includes the 'isCombo' parameter which will be true if the mouse event is part of a combo.

dev-tmpl
Bryan Miller hace 5 años
padre
commit
6167e610f1
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. +4
    -0
      app/js/ui/Input.js

+ 4
- 0
app/js/ui/Input.js Ver fichero

@@ -474,6 +474,7 @@ export default class Input{
var ename = MouseEventName("mousemove");
var data = {
source: this,
isCombo: (ename.indexOf("+") >= 0),
lastX: pos.lastX,
lastY: pos.lastY,
x: pos.x,
@@ -503,6 +504,7 @@ export default class Input{
var ename = MouseEventName();
var data = {
source: this,
isCombo: (ename.indexOf("+") >= 0),
lastX: pos.lastX,
lastY: pos.lastY,
x: pos.x,
@@ -541,6 +543,7 @@ export default class Input{
this.__mouseLastAction = "mouseup";
var data = {
source: this,
isCombo: false,
lastX: pos.lastX,
lastY: pos.lastY,
x: pos.x,
@@ -566,6 +569,7 @@ export default class Input{
var ename = MouseEventName("wheel");
var data = {
source: this,
isCombo: (ename.indexOf("+") >= 0),
lastX: pos.lastX,
lastY: pos.lastY,
x: pos.x,

Cargando…
Cancelar
Guardar