dbgate icon indicating copy to clipboard operation
dbgate copied to clipboard

BUG: Mac - Horizontal scrolling not working

Open saeedvaziry opened this issue 1 year ago • 4 comments

Describe the bug

Horizontal scrolling using shift + scroll not working on the data view.

To Reproduce Open a table with more columns that needs to be scrolled horizontally.

Version Information (please complete the following information):

  • OS: Mac
  • App Version: 5.2.7
  • Install source:installer
  • Type - Application
  • Database engine: MySQL

saeedvaziry avatar Jan 07 '24 19:01 saeedvaziry

I can confirm that it works under Windows, Linux and Web. Can any more Mac users confirm?

ProjectInfinity avatar Jan 09 '24 16:01 ProjectInfinity

I have confirmed that correctly worked on Windows, but this bug occurred on MacOS (both Electron App and Web).

It seems that this bug happens on packages/web/src/datagrid/DataGridCore.svelte.

https://github.com/dbgate/dbgate/blob/3e8dabc1e44dda74895bf545d98fd2639954857e/packages/web/src/datagrid/DataGridCore.svelte#L1273-L1280

I have confirmed that the processing branch of the handleGridWheel function by the shift key works on MacOS. The scrollHorizontal function may be the cause.

@ProjectInfinity I will try to fix it this weekend.

KKishikawa avatar Jan 12 '24 14:01 KKishikawa