|
|
On Friday, June 17, 2022 at 3:25:38 AM UTC-7 Albrecht Schlosser wrote:
On 6/17/22 01:36 Rob McDonald wrote:
On Thursday, June 16, 2022 at
3:00:55 PM UTC-7 Albrecht Schlosser wrote:
(5) Another attempt to fix all known issues is my a new
patch Fl_Counter_v2.patch (attached). It's likely not the
final solution (fixing symptoms only) but it's a start.
Rob, can you please:
(a) test and (hopefully) confirm that this patch fixes your
issue too?
I tried this patch (thanks for the prompt work). It helps,
but isn't a fix...
When I click the counter, it now increments two values
(usually) and then stops. It doesn't skip from 2 to 4, I see
the intermediate 3. It goes 2, 3, 4 and then stops -- for a
single click.
Occasionally (once out of 20+ attempts) it will only
increment by one (my sequence switched from even to odd).
In my demo I need to hold the mouse button for a "significant" time.
This time is presumably longer than 0.1 sec which is the repeat
timer of Fl_Counter. This can be seen clearly in the existing code:
if the FL_RELEASE event is delivered before the timer event the
internal variable `mouseobj` is reset and the timer repetition is
terminated.
Is it possible that your mouse button "click" lasts longer than 0.1
sec?
I am just clicking the mouse in a normal way. I am not dwelling on the button in any way. I don't have a millisecond stopwatch connected to my mouse finger -- but I'm not doing anything unusual as a user.
Is a counter supposed to repeat events if you hold down the button? I guess I'm failing to see how it doesn't behave like a normal button press and why we don't see this problem for all kinds of FLTK events.
If it is 'supposed' to repeat, then I should probably avoid Fl_Counter in the first place and just use normal buttons.
Rob
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/d271a2da-c2bc-4570-942e-edfc24a9c2can%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |