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

Scrolling horizontally with mouse wheel broken #355

Closed
chrysler5798 opened this issue Sep 26, 2018 · 32 comments
Closed

Scrolling horizontally with mouse wheel broken #355

chrysler5798 opened this issue Sep 26, 2018 · 32 comments

Comments

@chrysler5798
Copy link

Hello !

Steps to reproduce this issue

To reproduce this issue you need a mouse with a horizontal scroll wheel. Or emulate it but I don't know how.

  1. Go to a table or whatever window that needs a horizontal scrollbar
  2. Scroll horizontally with the horizontal mouse scroll wheel

Current behavior

It displays a new scrollbar and it doesn't scroll anyways.
2018-09-26_11-14-52

Expected behavior

Scrolling horizontally.

Environment

  • HeidiSQL version: 9.5.0.5293 (64 Bit)
  • Operating system: Windows v10.0
@ansgarbecker
Copy link
Collaborator

Are you sure this is only happening in HeidiSQL, not in other programs as well?

@ansgarbecker ansgarbecker changed the title Scrolling horizontally with mouse wheel Scrolling horizontally with mouse wheel broken Sep 27, 2018
@chrysler5798
Copy link
Author

chrysler5798 commented Sep 28, 2018

@ansgarbecker no it seems like some software support it :

  • Google Chrome
  • Firefox
  • IntelliJ / Android Studio
  • FileZilla

But others have the same behavior as HeidiSQL, creating another scrollbar which doesn't work:

  • Notepad++
    (I don't have any other example for the moment)

So I wouldn't say it's broken but not supported.
Thanks for your answer !

@ansgarbecker
Copy link
Collaborator

Could you please test whether horizontal scrolling is broken in the query editor also? And in some more places, eg. the database tree on the left side. That way I can probably narrow down the problem to the component(s) in which that happens.

@chrysler5798
Copy link
Author

I tried some places and the horizontal scrolling works :

  • In the text editor
  • In the query editor
    2018-10-11_10-23-35

It doesn't work :

  • In the database tree
  • In the table data tab, host tab, variables tab...

@leon-v
Copy link

leon-v commented Jan 24, 2019

I have had this issue for a while as well, I had a feeling it was to do with the Logitech software and the way it implements H scroll.

Query editor does work, Seems like it too fast though. And the scroll bar changes between theme colour and basic windows colour while scrolling.

It has been a pet peev of mine for a while. (don't want to detract from how awesome Heidi is generally though)

@SonamorN
Copy link

This is still happening on 10.1.0.5464 (64 bit)
OS is Windows 10 1809

It's really strange that the actual scroll bars moves but not the table!

@VilleSimola
Copy link

I have this problem with my laptop's touchpad. My scrollbar doesn't move at all though, so the problems might be related or not. When I slide the touhcpad with two fingers it scrolls every view in HeidSQL 10.3. nicely vertically but not horizontally. This function works well everywhere else.

@mz1909
Copy link

mz1909 commented May 5, 2020

The issue still exists. Just bought a Mouse with second scroll-wheel (Logitech MX Master) for database-purposes and it doesn't work.

Heidi SQL 11.0.0.5919 (64 Bit)
The scrollbar moves but not the page (like on the example by chrysler from Sep 2018. If I use Shift + normal scrollwheel it scrolls horizontally - so the funktion generally works, but it seems not linked correctly to the horizontal-scroll-wheel-action.

Heidi SQL 11.0.0.5974 (64 Bit)
In the latest version nothing happens at all - not even a scrollbar moving.

If a horizontal scroll would do the same as shift + normal scroll it would be fine!

Many thanks in advance for your help!

PS: Win10 1909 build 18363.815 (64 bit) was used for testing.

@sadachi
Copy link

sadachi commented May 26, 2020

Completely same as mz1919 with ver.11.0.0.5989

I am using Logitech MX Master 3

@ansgarbecker
Copy link
Collaborator

Potentially related: JAM-Software/Virtual-TreeView#953

I updated the VirtualTree sources on end of May, and once again a few weeks ago. Could someone with a capable mouse please test whether the current nightly build changes anything here?

@chrysler5798
Copy link
Author

I can't make it work in build 11.0.0.6050.
What's more, the weird scrollbar that was showing (see GIF on my first message) doesn't show anymore.

@gribeiro20
Copy link

any news?
still facing this issue, it's really annoying. I own a Logitech mx master 3 and the horizontal scroll works all around, even in vscode which is a little buggy. However in Heidi doesn't work at all, the behavior that I experience is the same as @mz1909

@leon-v
Copy link

leon-v commented Oct 26, 2020

Bump.
I'm still experiencing the same issue as described in this report.
I'm running 11.0.0.5919
I also have an MX Master, but only the 2S. I am using the Logitech options software to configure the mouse features.
Maybe @ansgarbecker can shed any light on this ?
Maybe its a Logitech H scroll issue..

@sadachi
Copy link

sadachi commented Apr 26, 2021

Today I installed development version 6265, and found H scroll wheel no longer works any more..
Even scroll bar does not move in any position (data table, query builder window, etc.)

ansgarbecker added a commit that referenced this issue May 21, 2021
@KENNYSOFT
Copy link

Still v11.3, with MX Master.

@hwebb
Copy link

hwebb commented Jun 15, 2022

Still an issue with V 12.0.0.6468 64Bit. Using MX Master 3S.
I will donate once this issue is solved.

@ansgarbecker
Copy link
Collaborator

Please update to the latest build, which has the latest modifications for VirtualTree and a compiler upgrade.

@hwebb
Copy link

hwebb commented Jun 19, 2022

Still no luck here unfortunately. I've even added HeidiSQL to the list of apps on the mouse software, but it doesn't change anything. If I change the action to Zoom in and out or navigate between tabs, the action is working well, just not horizontal scroll. Same behavior as OP.

@dankoman30
Copy link

bump

@srotak5
Copy link

srotak5 commented Apr 18, 2023

I have this issue with my logitech mx master 2s, please please fix it, or rather implement it

@Boshentz
Copy link

I can confirm that in W10, Heidi 12.5.0.6677 and logitech mx master 3s this issue still exists

@Errox
Copy link

Errox commented Aug 14, 2023

I can confirm that in heidi 12.5.0.6684 and the logitech mx master 3s this issue still exists. Running Windows 11

@er1z
Copy link

er1z commented Sep 19, 2023

W10, HSQL 12.5.0.6677, MX Master 3, newest drivers and still occurs.

@WeviMark
Copy link

WeviMark commented Oct 4, 2023

Running Windows 11, HSQL 12.5.0.6677, MX Master 3, Same problem. Scroll bar moves, but not the screen itself

@borhanuddin
Copy link

borhanuddin commented Nov 27, 2023

I'm using MX Master 3s with Logi Options+ software. My fix for this issue is to create a HeidiSQL profile, switch the Horizontal scroll's action to the keyboard shortcut, scroll up with Ctrl + Right, and scroll down with Ctrl + Left. I hope this helps.

Screenshot 2023-11-27 090626

@okkebal
Copy link

okkebal commented Mar 15, 2024

Same problem here, but my mouse does not have fancy settings like logitech.

In almost all software you can hold down shift an use the mousewheel to scroll horizontally. This does not work in Heidi either. This way you do need a special mouse to see if this works: Just hold down shift and use the scrollwheel.

@ansgarbecker
Copy link
Collaborator

In almost all software you can hold down shift an use the mousewheel to scroll horizontally. This does not work in Heidi either.

Shift+MouseWheel definitely works for me here. Please try again.
As a side note, Ctrl+MouseWheel is used to zoom in and out in the grids.

@okkebal
Copy link

okkebal commented Mar 16, 2024

You

In almost all software you can hold down shift an use the mousewheel to scroll horizontally. This does not work in Heidi either.

Shift+MouseWheel definitely works for me here. Please try again. As a side note, Ctrl+MouseWheel is used to zoom in and out in the grids.

You are right. I am wrong! It does work. Very strange on trying again it does seem to work. Shift + scrollwheel works for horizontal scrolling, but the mouse scrollwheel does not... So how about I donate the ergonomic mouse that I use so you can debug this issue? I use this mouse. Its an egonomic mouse with a wire. Its really a great mouse: https://www.deluxworld.com/en-pro-detail-m618xsu.html The side support is magnetically detachable so you don't have to use that. If you send me your shipping adress I will donate this mouse to the cause.... (would be nice if you remove my "donate" button for that). This mouse is really a game changer for me. I understand its no guarantee that you can 100% fix this issue... I'm a developer myself.

@ansgarbecker
Copy link
Collaborator

@okkebal please do not send me a mouse. I already own an MX Master 3S from Logitech, and I can confirm the horizontal scroll wheel issue. Using the Logi Options+ tool, I can assign Ctrl+Left and Ctrl+Right to fix that, like @borhanuddin already explained. And yes, for other mouses without such a support tool the issue persists.
This is definitely an issue in VirtualTreeView, the component used for grids and trees. It does not handle a horizontal wheel scroll correctly. I will try to compare what the SynEdit component does correctly (the SQL editors) - the wheel works there.

@ansgarbecker
Copy link
Collaborator

I found a fix for this in VirtualTrees.BaseTree.pas - seems that TScrollInfo.nTrackPos is always 0 on the horizontal scrollbar. Potentially a bug in the underlying Windows API, not sure. However, the wheel delta from the Windows message (TWMScroll.Pos) seems to work correctly.

@ansgarbecker
Copy link
Collaborator

Here's a proof that the fix works:

grid-horizontal-scroll-wheel

@KENNYSOFT
Copy link

Glad to see fixed in 12.7, Thanks!!!

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

No branches or pull requests