Gigantic touchpad zoom sensitivity is fixed

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
User avatar
DeepSOIC
Posts: 7810
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Gigantic touchpad zoom sensitivity is fixed

Postby DeepSOIC » Sat Aug 22, 2020 7:55 pm

For users:
To those who have set zoom step in preferences to something like 0.02: since 0.19.22283 that is no longer needed, and you should set it back to something sensible like 0.4.

If you have any problems with the new behavior, please ping me.

For scripting:
To those who might be using viewer event callbacks (Gui.ActiveDocument.ActiveView.addEventCallback()) to catch mouse wheel clicks, things have changed. Before this fix, you would get a mouse button event with BUTTON4 or BUTTON5. Now, you should instead get an 'SoMouseWheelEvent', and 'Delta' field contains the amount of scrolling (for mice, these usually come as multiple of 120; for touchpads, you get more events with small deltas instead).
chrisb
Posts: 28098
Joined: Tue Mar 17, 2015 9:14 am

Re: Gigantic touchpad zoom sensitivity is fixed

Postby chrisb » Sat Aug 22, 2020 10:37 pm

I have to say thank you for two things: The first is, of course, the fix. The second is, that you told us in which revision number we will get it; very convenient!
chrisb
Posts: 28098
Joined: Tue Mar 17, 2015 9:14 am

Re: Gigantic touchpad zoom sensitivity is fixed

Postby chrisb » Sun Aug 23, 2020 10:37 pm

It works!

Not only the zoom, which was compensated by the small factor, but also the uncontrollable zoom in sketcher when ending an operation with right mouse click.

Thanks!
User avatar
DeepSOIC
Posts: 7810
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: Gigantic touchpad zoom sensitivity is fixed

Postby DeepSOIC » Mon Aug 24, 2020 12:23 am

chrisb wrote:
Sun Aug 23, 2020 10:37 pm
...
I'm very glad to read this!
nahshon
Posts: 199
Joined: Wed Jul 24, 2013 8:06 pm

Re: Gigantic touchpad zoom sensitivity is fixed

Postby nahshon » Mon Aug 24, 2020 7:16 pm

I'm getting compilation errors on Fedora 31.
Missing include file SoSubEvent.h in SoMouseWheelEvent.h.

(using Coin3-devel-3.1.3-25.fc31.x86_64)
diff --git a/src/Gui/SoMouseWheelEvent.h b/src/Gui/SoMouseWheelEvent.h
index 268009f39..043c6070b 100644
--- a/src/Gui/SoMouseWheelEvent.h
+++ b/src/Gui/SoMouseWheelEvent.h
@@ -29,6 +29,7 @@
//#endif

#include <Inventor/events/SoEvent.h>
+#include <Inventor/events/SoSubEvent.h>

/**
* @brief The SoMouseWheelEvent class is a temporary replacement for
Thanks!
-- Itai
User avatar
DeepSOIC
Posts: 7810
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: Gigantic touchpad zoom sensitivity is fixed

Postby DeepSOIC » Mon Aug 24, 2020 7:51 pm

nahshon wrote:
Mon Aug 24, 2020 7:16 pm
Missing include file SoSubEvent.h in SoMouseWheelEvent.h.
Seems to be a totally unnecessary include. I'm wondering, why did I put it there?...

EDIT: PR #3820
nahshon
Posts: 199
Joined: Wed Jul 24, 2013 8:06 pm

Re: Gigantic touchpad zoom sensitivity is fixed

Postby nahshon » Mon Aug 24, 2020 8:23 pm

Now I'm confused. This file is required!

I see that it i already fixed on master by git commit ff57ddeb6faa9bc7dd515791eaf8998230228a47

For some reason my local git failed to sync.
Please remove the PR.
Thanks & sorry!
-- Itai