FLTK logo

[fltk.general] Re: Run code when Fl_Scroll stops scrolling?

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Run code when Fl_Scroll stops scrolling? geert karman Sep 09, 2022  
  PS. After scrolling I check with a time out if another scroll happens, if not I execute my code. So you don't need repetitive timeouts.

Op vrijdag 9 september 2022 om 08:29:09 UTC+1 schreef jakubh...@gmail.com:
Hello!

As described in https://stackoverflow.com/questions/73653471/fltks-fl-scroll-run-code-in-reaction-to-scrolling-happening, I want to run a function when Fl_Scroll's yposition changes or stops changing. I did not find any callback or event that would help me with that.

In the end I solved my need by checking the yposition every 100ms but want to pick your brains for alternative / better solutions. Thank you!

Best regards, Jakub Holy

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/8570d632-871e-4bba-bb73-f34b1dd49b80n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.