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
{{ message }}
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.
// open swipeout manually,_open: function(direction){this.refs.swipeoutContent.measure((ox,oy,width,height)=>{this.setState({btnWidth: (width/5),btnsLeftWidth: this.props.left ? (width/5)*this.props.left.length : 0,btnsRightWidth: this.props.right ? (width/5)*this.props.right.length : 0,contentHeight: height,contentWidth: width,});});btnsRightWidth=this.state.btnsRightWidth;btnsLeftWidth=this.state.btnsLeftWidth;if(direction=='right'){// open swipeout rightthis._tweenContent('contentPos',-btnsRightWidth);this.setState({contentPos: -btnsRightWidth,openedLeft: false,openedRight: true});}elseif(direction=='left'){// open swipeout leftthis._tweenContent('contentPos',btnsLeftWidth);this.setState({contentPos: btnsLeftWidth,openedLeft: true,openedRight: false});}},
I add this function to open swipeout manually, it works only when I touched swipeout content at least once. Actually I found solution without trying to touch once, which write the direct width in btnsRightWidth and btnsLeftWidth variable but it's not universal way at all. What do you think about?
The text was updated successfully, but these errors were encountered:
I add this function to open swipeout manually, it works only when I touched swipeout content at least once. Actually I found solution without trying to touch once, which write the direct width in btnsRightWidth and btnsLeftWidth variable but it's not universal way at all. What do you think about?
The text was updated successfully, but these errors were encountered: