Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse scrolls wrong way on v5.13 for Windows #1062

Closed
JJRousseau opened this issue Jan 2, 2018 · 21 comments
Closed

Mouse scrolls wrong way on v5.13 for Windows #1062

JJRousseau opened this issue Jan 2, 2018 · 21 comments
Labels

Comments

@JJRousseau
Copy link

I notice that the mouse scrolls in the opposite direction on the latest version 5.13 for Windows. Tested with a Logitech and Perixx mouse on Windows 10 1607.

@kissglay
Copy link

kissglay commented Jan 7, 2018

Rolling the wheel one notch scrolls like dozen lines at a time in 5.13, while the previous version respecting the setting made in "Control Panel -> Mouse Properties" in Windows 10 1709.
----- Update ----
Seems like the number of scrolled lines is the number set in windows squared. (i.e.: set by 3 lines at a time scrolls 9 lines at a time. 5 lines in setting scrolls 25 lines etc.)

@rd1
Copy link

rd1 commented Jan 8, 2018

did not notice the wrong or opposite direction scrolling

but did notice the number of lines scrolled is not consistent with windows mouse settings.

fresh new windows 10 v1709 installed last weekend

@mrfearless
Copy link

I recently updated from an older version and noticed this change as well, now the mouse scroll wheel scrolls a full page view of lines instead of a few lines at a time. I looked in the ini settings to see if there was a settings to adjust this back, but didnt see any.

@kissglay
Copy link

kissglay commented Feb 4, 2018

Introduced in 5.13, this issue persists in 5.14.

@JJRousseau
Copy link
Author

Still not fixed in 5.15.2 . It still scrolls by a page regardless of the control panel setting as well.

@antekgla
Copy link
Contributor

antekgla commented Mar 29, 2018

Can't reproduce this issue.
Tested 5.13 & 5.15.2 in W7 and W10 and the mouse wheel scroll normal (Logitech Trackball)

Can you test the file I upload in #1101 (post number 12) ?
The reason I want to you test that file is what was compiled with Lazarus 1.6.
The official release is compiled with Lazarus 1.8.

@kissglay
Copy link

With the one provided, scrolling without problem. (Except this one can't load "libeay32.dll")
In my case, the one compiled with Lazarus 1.8 scroll the number of lines -- specified in windows mouse setting -- squared. e.g. 3 lines in setting became 9 lines while 5 lines became 25 lines.

@JJRousseau
Copy link
Author

Scrolling works properly in that build, antekgla.

@rd1
Copy link

rd1 commented Mar 29, 2018

i've had this issue since a couple versions too

@antekgla
Copy link
Contributor

antekgla commented Mar 29, 2018

I have reading Lazarus forums and I dont find a isssue with this and I tested myself in W10 and the issue is not present in my setup.
Maybe some related with HighDPI settings?
To the people what have this problems:
... what is your Screen Resolution/DPI Settings?

@JJRousseau
Copy link
Author

1920x1080 96dpi

@kissglay
Copy link

kissglay commented Mar 30, 2018

@antekgla
Tested on 2 PC and 1 Laptop, same problem.
On the laptop, if using the touchpad gesture to scroll, it's fine and respect the setting (how many lines should be scrolled), but not if using a mouse.
Have you tested it using a mouse instead of the trackball?

antekgla referenced this issue Mar 30, 2018
Apparently original author make a fix for better scroll in TVarGrid. That fix works great until Lazarus 1.6 but in 1.8 the number of lines scrolled are incorrect.
This fix make that workaround conditional to Lazarus 1.6 or lower.
@antekgla
Copy link
Contributor

antekgla commented Mar 30, 2018

Fix this with ab033d9

Apparently original author make a fix for better scroll in TVarGrid. That fix works great until Lazarus 1.6 but in 1.8 the number of lines scrolled are incorrect.
Now the fix is conditional to Lazarus 1.6 or lower.

If anyone want to test this before release, please download this test build (only windows) compiled with Lazarus 1.8

transgui.zip

@JJRousseau
Copy link
Author

That build works properly when you have the mouse control panel set to scroll at x lines per notch but when you set it to scroll at one page at a time, it scolls one line per notch in the wrong direction.

@mrfearless
Copy link

I tried your build @antekgla and its much better.

@PeterDaveHello
Copy link
Member

@kissglay
Copy link

Thx @antekgla.
It's working properly now.

@JJRousseau
Copy link
Author

Still doesn't work when setting scroll to one page at a time.

antekgla added a commit that referenced this issue Mar 31, 2018
Now works in 1.6 & 1,8 and when scroll is setted one page at the time also.
@antekgla
Copy link
Contributor

antekgla commented Mar 31, 2018

I (hope) definitely fix this with 4983a0f

Test build before release (only Windows) here:

transgui.zip

This was hard... Lazarus 1.8 has completely rewritten the TCustomDrawGrid.GridMouseWheel procedure and is incompatible with 1.6.

@JJRousseau
Copy link
Author

This one scrolls properly in full page or multiline mode. Thanks antekgla.

@PeterDaveHello
Copy link
Member

PeterDaveHello commented Apr 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

6 participants