|
|
On 10/12/21 7:13 PM Rob McDonald wrote:
Albrecht,
You've made great progress -- sorry I haven't been able to keep up.
Don't worry; thanks for your support.
I attempted to add a gesture responsive drawing to your test program
-- but haven't quite gotten it working. I don't normally work with
FLTK on this level, so I'm probably doing something trivial wrong.
You should be able to see what I am trying to accomplish very quickly
and hopefully find my error.
https://github.com/ramcdona/fltk/tree/MacOS_Gestures
Yep, found it. The only "real" issue is in draw(): you're pushing the
matrix at the wrong place in the code. You need to move
'fl_push_matrix();' up before 'fl_translate(...);' and it should work
... with some minor issues. Cute!
What I saw so far: the rotation is "inverted". I'm leaving this one up
to you (unless this was intended).
There was also one problem with event delivery (missing FL_ZOOM_GESTURE
in Fl_Group::handle(). I added it and now it works - at least as I'd expect.
See attached patch for both issues.
PS: Please don't top-post here, this makes the history of messages
confusing. Thanks
--
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/34754742-85a6-6b82-94fa-f6f0548a14b8%40online.de.
[ Direct Link to Message ] | |
|
| |