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

Fixes issue #159 #161

Closed
wants to merge 1 commit into from
Closed

Conversation

t-soares
Copy link
Contributor

@t-soares t-soares commented Dec 28, 2016

Fixes the issue #159.

Reproduce the issue:

  1. https://jsfiddle.net/10wprwvr/
  2. Click on the "Open Right Drawer" button.
  3. Close the drawer.
  4. Swipe from the right edge.
  5. The drawer is animated twice.

The PR #158 changed the drawer opening and closing to be done inside a requestAnimationFrame. At the end of a swipe movement, the width is reset outside the rAF block, causing the opening/closing animation to be started from the initial position.

Solution:
Reset the drawer width inside the rAF Block that open or closes the drawer. It also restores the transition on the start and stop of edge peek.

Run the fix: https://jsfiddle.net/rdjxmax4/4/
@rubenstolk @blasten

@jptrainor
Copy link

I'm experiencing the same issue in iOS/WkWebview. Waiting on this to be merged and new paper-drawer-panel release tagged. Thanks.

@rubenstolk
Copy link

Why is this not being merged, #159 is a really serious bug imho...

@t-soares
Copy link
Contributor Author

t-soares commented May 4, 2017

@blasten Can you take a look on this?

@blasten
Copy link
Contributor

blasten commented May 4, 2017 via email

@t-soares t-soares closed this Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants