kopia lustrzana https://github.com/robhawkes/vizicities
Right mouse button no longer trigger picking events
rodzic
c5ef582997
commit
75baedb247
|
@ -10336,12 +10336,23 @@ if (typeof window === undefined) {
|
|||
|
||||
VIZI.ControlsMousePick.prototype.onMouseDown = function(event) {
|
||||
var self = this;
|
||||
|
||||
// Skip if right button
|
||||
if (event.button === 2) {
|
||||
return;
|
||||
}
|
||||
|
||||
self.validClick = true;
|
||||
};
|
||||
|
||||
VIZI.ControlsMousePick.prototype.onMouseUp = function(event) {
|
||||
var self = this;
|
||||
|
||||
// Skip if right button
|
||||
if (event.button === 2) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Skip if click has been invalidated by movement
|
||||
if (!self.validClick) {
|
||||
return;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -79,12 +79,23 @@
|
|||
|
||||
VIZI.ControlsMousePick.prototype.onMouseDown = function(event) {
|
||||
var self = this;
|
||||
|
||||
// Skip if right button
|
||||
if (event.button === 2) {
|
||||
return;
|
||||
}
|
||||
|
||||
self.validClick = true;
|
||||
};
|
||||
|
||||
VIZI.ControlsMousePick.prototype.onMouseUp = function(event) {
|
||||
var self = this;
|
||||
|
||||
// Skip if right button
|
||||
if (event.button === 2) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Skip if click has been invalidated by movement
|
||||
if (!self.validClick) {
|
||||
return;
|
||||
|
|
Ładowanie…
Reference in New Issue