Right mouse button no longer trigger picking events

0.2
Robin Hawkes 2015-03-13 18:29:20 +00:00
rodzic c5ef582997
commit 75baedb247
3 zmienionych plików z 23 dodań i 1 usunięć

Wyświetl plik

@ -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;

2
build/vizi.min.js vendored

File diff suppressed because one or more lines are too long

Wyświetl plik

@ -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;