foo_spider_monkey_panel
foo_spider_monkey_panel copied to clipboard
rbtn down/release not working properly after moving
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.
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
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?