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

Add support for RTL in Edge #268

Merged
merged 2 commits into from
Jun 18, 2019

Conversation

MarkFalconbridge
Copy link
Contributor

For #159

This fix adds support for non-bleeding edge Edge which uses a different positive scrollLeft when in RTL compared to the positive scrollLeft that Chrome uses.

case 'negative':
outerRef.scrollLeft = -scrollLeft;
break;
case 'reverse':
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These labels are confusing to me. Especially calling a non-spec-compliant behavior "default". I wonder if there is a more meaningful name we could pick?

So I think we're differentiating between:

  • spec-compliant browsers: 0 ... -N
  • Chrome: N ... 0
  • non-Chromium Edge: 0 ... N

Maybe the following labels would be a bit more meaningful?

  • negative: (0 ... -N)
  • positive-descending: (N ... 0)
  • positive-ascending: (0 ... N)

@MarkFalconbridge
Copy link
Contributor Author

I'm happy with the renames.

Copy link
Owner

@bvaughn bvaughn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thansk~

@bvaughn bvaughn merged commit bdc1f75 into bvaughn:master Jun 18, 2019
@bvaughn
Copy link
Owner

bvaughn commented Jun 18, 2019

Published in 1.8.3

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

Successfully merging this pull request may close these issues.

None yet

2 participants