question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unexpected behaviour with right to left direction

See original GitHub issue

My body tag has direction: rtl. If I swipe from left to right, my expected behaviour is I want to go from slide 1 to slide 2 but it tries to go from slide 1 to 0 which doesn’t exist.

Is there any support for RTL direction? It’s basically an inversion of everything related to x-axis.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
akramabdulrahmancommented, Dec 4, 2020

@tim-steele

well I am having the same problem under dir=“RTL”, if there was an invert option for the drag I mean like drag=invert that would just invert the translation animation. right now in rtl this is what happens ezgif-7-da03d814b682

I haven’t read the lib yet , I need this to be enabled , gonna see if i can check it out . shared this to make sure i know what needs to be done .

-see where the drag event is being made. if the provider has an invertDrag prop with true x will become window.width - x if the thing is vertical its window.height -y

thanks for this carousel O.o

0reactions
tim-steelecommented, Dec 4, 2020

@akramabdulrahman if an invert feature needs to happen, then we are open for a pull request.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why we get left and right confused - That Thinking Feeling
Dr Clare Jonas explains how we develop our sense of left and right, how it can go wrong - and when getting left...
Read more >
How to Read People's Eye Direction and Behavior With 34 Cues
Watch their eye direction. A person may have a favorite side—left, right, up, or down—when they are thinking of something. Any dramatic shift...
Read more >
Sudden confusion (delirium) | nidirect
A person with a delirium can show symptoms including: confusion; distractibility; rambling speech; changes in alertness; agitation (sometimes leading to ...
Read more >
Adult persistence of head-turning asymmetry - Nature
Here I show that twice as many adults turn their heads to the right as to the left when kissing, indicating that this...
Read more >
Right Hemisphere Damage - ASHA
Right hemisphere damage is an acquired brain injury that causes impairments in language and other cognitive domains that affect communication.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found