Actually the flag version does not work for me.
(I thought it did because on-paint was fast enough not to be noticed that
it was sequentially processing every mouse event with a paint call)
#(struct:v2 109 80) ;; mouse pos
draw ;; beginning of draw
cpu time: 8 real time: 8 gc time: 0 ;;
Den lør. 22. maj 2021 kl. 05.37 skrev schle...@gmail.com <
schleesi...@gmail.com>:
> I have a racket gui app that uses a canvas% with overridden on-event and
> on-paint methods.
> When the user hovers over drawn elements the on-paint is called via (send
> this refresh)
> to display the element
I have a racket gui app that uses a canvas% with overridden on-event and
on-paint methods.
When the user hovers over drawn elements the on-paint is called via (send
this refresh)
to display the element under the cursor with a selection/outline.
Recently I noticed that this has gotten extremely
3 matches
Mail list logo