I just played a little on my macOS 10.12.3: I could reproduce this odd behavior, but do not have any idea currently.
This sequence e.g. works: win = App.focusedWindow() win.highlight(2) p1 = Location(win.x + 10, win.y + win.h/2) p2 = p1.offset(400, 0)
mouseDown(Button.LEFT) mouseMove(p2) wait(1) mouseMove(p1) mouseUp()
this opens and closes the drawer. But if you do a mouseUp() in between, the next mouseDown() seems not to be recognized.
I will make a test directly with Java AWT Robot.
I just played a little on my macOS 10.12.3:
I could reproduce this odd behavior, but do not have any idea currently.
This sequence e.g. works:
win = App.focusedWindow()
win.highlight(2)
p1 = Location(win.x + 10, win.y + win.h/2)
p2 = p1.offset(400, 0)
mouseDown( Button. LEFT)
mouseMove(p2)
wait(1)
mouseMove(p1)
mouseUp()
this opens and closes the drawer.
But if you do a mouseUp() in between, the next mouseDown() seems not to be recognized.
I will make a test directly with Java AWT Robot.