foo_spider_monkey_panel icon indicating copy to clipboard operation
foo_spider_monkey_panel copied to clipboard

rbtn down/release not working properly after moving

Open regorxxx opened this issue 2 years ago • 1 comments

More info: rbtn

function on_mouse_rbtn_down(x, y, mask) {
	console.log('down');
}

function on_mouse_move(x, y, mask) {
    const MK_RBUTTON  = 0x0002;
    if (mask === MK_RBUTTON) { console.log('move');}
}

function on_mouse_rbtn_up(x, y, mask) {
	console.log('release');
	return true;
}

PD: After more tests, I have found the callbacks (on_mouse_rbtn_up, on_mouse_rbtn_down) sometimes work fine and other times are skipped, doing the same in all tests.

bug-smp

Also, whenever all callbacks are processed, they are fired in wrong order.

  • Pressing R. Click -> and moving without releasing it -> on_mouse_move -> releasing R. Click -> on_mouse_rbtn_down -> on_mouse_rbtn_up

It should be

  • Pressing R. Click -> on_mouse_rbtn_down ->and moving without releasing it -> on_mouse_move -> releasing R. Click -> on_mouse_rbtn_up

regorxxx avatar May 29 '22 08:05 regorxxx

Not sure what's going on, but whatever it is, I can't reproduce it. In all my tests it behaves as expected, i.e. Pressing R. Click -> on_mouse_rbtn_down ->and moving without releasing it -> on_mouse_move -> releasing R. Click -> on_mouse_rbtn_up.

Can you try a clean portable fb2k setup with a single SMP panel, just to make sure?

TheQwertiest avatar Jun 15 '22 23:06 TheQwertiest