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

Using right-to-left interface, mouse dragging direction is inverse #171

Open
WiseFerret opened this issue Aug 24, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@WiseFerret
Copy link

WiseFerret commented Aug 24, 2024

When the interface is set to a right-to-left language, such as Arabic, Hebrew or Farsi, the user must move the mouse to the right in order to rotate the cube to the left, and vice versa.

Steps to reproduce the behavior:

  1. Set the Gnome interface to Arabic through settings.
  2. Log out and log in.
  3. Rotate the cube to the left using the mouse.
  4. See the cube rotating to the right.

You may also check the output of GNOME Shell for any error messages.
This can be done with the following terminal command:

Expected Behavior

The cube should rotate to the left.

System

  • Linux distribution: ubuntu 21.10
  • Desktop Cube version: 26
  • GNOME Shell version: 47-beta-1ubuntu2
@WiseFerret WiseFerret added the bug Something isn't working label Aug 24, 2024
@WiseFerret WiseFerret changed the title Using right-to-left interface, mouse direction is inverse Using right-to-left interface, mouse rotatation direction is inverse Aug 24, 2024
@WiseFerret WiseFerret changed the title Using right-to-left interface, mouse rotatation direction is inverse Using right-to-left interface, mouse dragging direction is inverse Aug 24, 2024
@Schneegans
Copy link
Owner

Hi there! Thanks for the report. Could you please open ~/.local/share/gnome-shell/extensions/[email protected]/src/DragGesture.js and remove the - from -deltaX in this line?

Then logout and login again and see if the issue is fixed.

Sometime GNOME Shell resets any changes you make to these file on login. If that happens, you can increase the "version" number in ~/.local/share/gnome-shell/extensions/[email protected]/metadata.json by one.

@WiseFerret
Copy link
Author

This solves the original issue: the movement direction of the cube is now identical to the movement direction of the mouse while dragging.
However, the directional relation between the workspaces on the cube is wrong. In an rtl environment, the first workspace should be the one to the most right, the one left of it - the next one, and so on. Right now it's the opposite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants