Skip to content
Snippets Groups Projects
Commit da017e62 authored by echicken's avatar echicken
Browse files

Only do mouse things if the event is a 'press'.

Scroll wheel stuff now works with SyncTERM if your script enables
mouse input in normal_tracking mode (and if your SyncTERM is up
to date.)
parent 3e4f7a2a
No related branches found
No related tags found
No related merge requests found
......@@ -349,7 +349,7 @@ Tree.prototype.getcmd = function(cmd) {
/* if the submenu did not handle it, let this menu handle the command */
if(retval === this.__values__.NOT_HANDLED) {
if (cmd.mouse !== null && cmd.mouse.x >= this.frame.x && cmd.mouse.x < this.frame.x + this.frame.width && cmd.mouse.y >= this.frame.y && cmd.mouse.y < this.frame.y + this.frame.height) {
if (cmd.mouse !== null && cmd.mouse.press && cmd.mouse.x >= this.frame.x && cmd.mouse.x < this.frame.x + this.frame.width && cmd.mouse.y >= this.frame.y && cmd.mouse.y < this.frame.y + this.frame.height) {
var my = cmd.mouse.y - this.frame.y;
switch (cmd.mouse.button) {
case 0: // left click
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment