Only allow sprites and objects to be clicked with the first mouse button.
Will this change be as ill received as removing "P" from chat? Who knows. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3278 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -409,13 +409,17 @@ public class MisoScenePanel extends VirtualMediaPanel
|
||||
return;
|
||||
}
|
||||
|
||||
if (_hobject instanceof Sprite) {
|
||||
handleSpritePressed((Sprite)_hobject, e.getX(), e.getY());
|
||||
} else if (_hobject instanceof SceneObject) {
|
||||
handleObjectPressed((SceneObject)_hobject, e.getX(), e.getY());
|
||||
} else {
|
||||
handleMousePressed(_hobject, e);
|
||||
if (e.getButton() == MouseEvent.BUTTON1) {
|
||||
if (_hobject instanceof Sprite) {
|
||||
handleSpritePressed((Sprite)_hobject, e.getX(), e.getY());
|
||||
return;
|
||||
} else if (_hobject instanceof SceneObject) {
|
||||
handleObjectPressed((SceneObject)_hobject, e.getX(), e.getY());
|
||||
return;
|
||||
}
|
||||
}
|
||||
// if not button1, or _hobject not Sprite or SceneObject...
|
||||
handleMousePressed(_hobject, e);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user