You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered this bug,too! My solution is to calling method instead of reading variable. Change all this.btnsRightWidth to this.get_btnsRightWidth(),and add the following method
function get_btnsRightWidth(){
return this.right ? this.right.offsetWidth : 0;
}
I noticed that in some cases this function in Swipeout.js:
returns me this.btnsLeftWidth as 0 because this.left.offsetWidth returns 0 even though this.left is defined and it's a proper
It happens when I have fixed dialog and the content of it as
As a result this.btnsLeftWidth is 0 and this block (that responsible for swiping)
return translate3d(0px,0px,0px) which does not swipe.
Quick fix was to add setTimeout on that function (even with 0 delay it fixes the issue).
Could you please have a look and maybe find something better?
The text was updated successfully, but these errors were encountered: