syndicodefront / infekt

The ultimate best NFO viewer, ever!
https://infekt.ws/
GNU General Public License v2.0
360 stars 20 forks source link

Touch scrolling doesn't work (Windows 10) #108

Closed varoot closed 11 months ago

varoot commented 8 years ago

I have a Surface Pro. When I use trackpad to scroll, the scrollbar moves but the content doesn't. The same also happens with touchscreen scrolling. Mousewheel works fine btw.

flakes commented 8 years ago

Thanks for the report!

varoot commented 8 years ago

This is Surface Pro 4. I have all the updates for Windows 10 installed. I don't have this issue with any other applications. This only happens when I tried to drag the main window area in order to scroll. If I drag the scrollbar, it works fine.

flakes commented 8 years ago

Thanks, one more question:

If you hold down the CTRL key while using the trackpad in the main window, does the zoom level change or not?

varoot commented 8 years ago

You mean holding down CTRL and scroll on trackpad? No, that doesn't zoom it, but I can pinch on the trackpad and on the touchscreen to zoom. That one works.

flakes commented 8 years ago

Can you please try this (portable) version and check if it's any better? :8ball:

https://syndicode.org/infekt/downloads/iNFekt-v0.9.5-SuperCompact_VS14Manifest.rar

varoot commented 8 years ago

Hmm... there's no difference at all. I think it's something to do with the renderer realizing it should re-render, because the scrollbar responds correctly to my touch scroll (even in previous version).

For example, when I scroll to the end of content, I see that the scrollbar has reached the bottom, even though the content doesn't move at all (i.e. still at the top). However, if I resize or tap the window then, it's rendered at the correct position. I hope that makes sense. The behavior is the same for all 3 rendering modes.

varoot commented 8 years ago

One more strange behavior due to this bug: If I scroll down using touchpad, then use a keyboard arrow to scroll half the window more. The whole screen moves with the keyboard, but the top half was from one part of the document (incorrect) and the bottom is from another (correct) part. Let me know if you need me to take a screenshot for this.

flakes commented 8 years ago

Thanks for the info, that was helpful! I made an additional change in this version for redrawing the window, maybe it will help: https://syndicode.org/infekt/downloads/iNFekt-v0.9.5-SuperCompact_2016-01-29.rar

varoot commented 8 years ago

No, this doesn't solve it.

I also noticed some thing. When I use touchpad or touchscreen to scroll, it triggers "momentum scrolling" where the scrollbar might still keep moving after I lift up my fingers. Maybe this is triggered by different events from normal scrolling?

flakes commented 8 years ago

I think I may have found the issue, I did not handle one specific scroll message (_SBTHUMBPOSITION) - which seems to be generated according to https://msdn.microsoft.com/en-us/library/windows/desktop/dd940543(v=vs.85).aspx. Please try this version: https://syndicode.org/infekt/downloads/iNFekt-v0.9.5-SuperCompact_2016-01-30.rar If this doesn't help either, I will have to look into fully supporting the gestures (which is not hard, but I can't test it...)

varoot commented 8 years ago

Sadly it still doesn't work.

I don't know why the pan/flick gesture doesn't work but the zoom gesture works though.

flakes commented 8 years ago

v0.9.6 has just been released, can you please test this one again?

varoot commented 8 years ago

No, still doesn't work

flakes commented 11 months ago

Won't be fixed in 1.x any more, but 2.0 should have this covered. See issue #151