|
|
|
|
|
by bdowling
2608 days ago
|
|
A naive implementation would have the problem you describe. However, a smarter library implementation avoids this (e.g., by generating an id for the button, saving the id on mouse-down, and checking the id on mouse-up). The user of such a library won't have to worry about it. |
|
I would call that a dirty hack, no to mention being implicitly stateful.