-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Swipe panel with default transition none not run properly #7711
Comments
@knobli there is nothing in your fiddle that implements swipe navigation only swipe to open the panel which seems to work fine. and the transition none from the button in the panel works fine too. Also the SO question you link to is something that was fixed in 1.4.2 and also not about swipe navigation. Im closing this as cant reproduce / incomplete. |
@arschmitz do you click on the navigation button or swipe on the second page (Training)?
|
@knobli there is no way in your fiddle to swipe to a new page you have nothing implementing this. I have followed these steps and cannot reproduce the issue you are talking about. what browser are you using what version? |
@arschmitz you're right, you can not swipe to another page, put you can swipe to open the navigation. The title of the issue is maybe wrong, but there is an issue with the "split"-navigation combined with "none" transition (please note the picture) |
@knobli this is what iv been doing the whole time and i cannot reproduce. Again what browser/device/version are you using to see this? |
Windows 7 Google Chrome Version 37.0.2062.120 m |
I'v checked all these and I cannot reproduce this issue. Page loads everything is fine, I open the panel ( via button or swipe ) click the link next page loads with no transition and everything looks fine. Not sure why your seeing this and I can't reproduce. |
@arschmitz I check this with some friends and they have the same issue at this jsfiddle example. Do you open the navigation after landing on the 'Training'-site again? |
how about record what you do and the outcome? you can try using (free) Fraps: http://www.fraps.com/ |
I would expect that it looks like this: I also capture the procedure (swap and with navigation): http://knob.li/jquery_mobile_issue.avi |
I see your point. The first time the (News) page is moved to the right I used FX 32.0.3 Venlig hilsen Rasmus Christiansen 2014-09-26 14:51 GMT+02:00 Raffael Santschi notifications@github.com:
|
@arschmitz could you please reopen the issue? |
I can reproduce this now. The issue is not quite as it seems though. The problem is the second page is not animating when the page should slide over to reveal the panel it is never moving on the second page its the same with push and reveal panels. However overlay panels work fine because they don't animate the page only the panel. |
I have a similar problem.When set 'defaultPageTransition' as 'none', external panel has a incorrect behavior.Other defaultPageTransition option is OK. You can reproduce this problem as the following steps: |
I got this. The problem is with the open-page tracking we've added. External panels store a reference to the currently-open page when they open, and The problem is, if you navigate away from the page, the nulling-out happens after the _getWrapper() function which gets called as the pageshow handler has already used the reference to retrieve the wrapper. Thus, it retrieves the wrapper from the old page instead of finding that there is no wrapper on the new page, meaning that it has to generate one. The upshot is that, when you navigate to the second page, the panel uses the wrapper from the first page instead of generating a wrapper for the second page. The quick fix is to null-out the reference to the current page from the pageshow handler and only then call _getWrapper() to update the wrapper. The proper fix would be to take a long, hard look at open/close/close-immediately lifecycle management for both the panel and the popup, factor out common behaviour patterns, and provide a generic extension used by both panel and popup. The extension would allow both panel and popup to correctly react to page change events, executing the right things in the right order, being asynchronous where asynchronicity is needed, while synchronizing those portions of the code which need to be synchronized. Popup already does this, but in a popup-specific way, so that should be factored out to work for both popup and panel. This, in turn, will most likely segue into a panel rewrite :) |
... and to ramble on even more: The root cause of this is that, the function Whereas when there is a transition between the pages, the stack-unwound |
I use the new version of jquery mobile (1.4.4) and have some html files, which I'm linking with a swipe navigation. The default transition is set to none and if I click on a link the main page is loaded correctly but if I click on the second page on the navigation the page background color will be black and the navigation is overlaying the page.
In the jsfiddle I create a multi page, but the issue looks the same.
http://jsfiddle.net/knobli/yh7guzvu/4/
I try to fix it with an own transition (referring to http://stackoverflow.com/a/22576986/2136148) and it looks like that this solve the issue:
http://jsfiddle.net/yh7guzvu/8/ (slow loading)
http://jsfiddle.net/yh7guzvu/6/ (overwrite fade)
The text was updated successfully, but these errors were encountered: