openGeeksLab / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

Dragging a Button should not fire its ActionListeners when Display.dragStartPercentage between tap and release #1401

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Tested in the simulator in Android mode:
When dragging a button and releasing it whilst still in the Button area it 
fires its ActionListeners.
IMHO the Button should only fire its ActionListeners when the release location 
is under Display.dragStartPercentage related to the tap location.

Original issue reported on code.google.com by Stefan.A...@gmail.com on 17 Mar 2015 at 12:11

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by shai.almog on 17 Mar 2015 at 5:48

GoogleCodeExporter commented 8 years ago
Added a couple of methods to Button to enable this:

isAutoRelease()
setAutoRelease(boolean autoRelease)

Original comment by cf27...@gmail.com on 19 Mar 2015 at 12:37