framework7 icon indicating copy to clipboard operation
framework7 copied to clipboard

BUG: Calendar.update() when called after the month Transition Animation re-does the animation again

Open manish2535 opened this issue 8 years ago • 4 comments

This is a (multiple allowed):

  • [x] bug

  • [ ] enhancement

  • [ ] feature-discussion (RFC)

  • Framework7 Version: Framework7 2.0.7, Framework7 Vue 2.0.7.

  • Platform and Target: Chrome 63.0.3239.132.

  • Live Link or JSFiddle: Tried creating a Fiddle but not successful. Here is what I have so far - https://jsfiddle.net/k6t3fnn7/10/. I dont know how to make it work on a non-vue project.

What you did

In the monthYearChangeEnd event of the Calendar Component I do an AJAX call to get more events then update the calendar events and finally do a calendar.update(). The problem is when I swipe the calendar to go to the next/prev month and calendar.update() runs the Transition Animation for the 2nd time which makes the UI very confusing as if the month hasnt really changed.

If you look at the attached GIF you will see what I mean. To make it issue obvious I have put the calendar.update() in a 2 sec timeout.

progress1

Expected Behavior

calendar.update() should NOT trigger the Month change Animation.

Actual Behavior

calendar.update() is triggering the Month change Animation.

P.S. Remember, an issue is not the place to ask questions. You can use Stack Overflow for that or join the #framework7 channel on irc.freenode.net, where we will be more than happy to help answer your questions.

Before you open an issue, please check if a similar issue already exists or has been closed before.

manish2535 avatar Mar 04 '18 15:03 manish2535

Thank you so much. Great work. :+1:

manish2535 avatar Mar 04 '18 16:03 manish2535

@manish2535 : how did you make your gif ?

SpiderNeo1 avatar Mar 05 '18 10:03 SpiderNeo1

Google for a software called Licecap.

Regards, Manish

On Mar 5, 2018 5:11 AM, "SpiderNeo" [email protected] wrote:

@manish2535 https://github.com/manish2535 : how did you make your gif ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/framework7io/framework7/issues/2242#issuecomment-370371294, or mute the thread https://github.com/notifications/unsubscribe-auth/AEcp9kSxDkgTTZy_NZSudfdwk-Nj6UdBks5tbQ9pgaJpZM4SbYMK .

manish2535 avatar Mar 05 '18 15:03 manish2535

Thank you.

SpiderNeo1 avatar Mar 06 '18 15:03 SpiderNeo1