mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-09 14:16:02 +08:00
fix(swipe): Cache isEnabled: false, fix scrolling in Trash
This commit is contained in:
parent
bdfa426ecf
commit
a7fbeb0157
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ export default class SwipeContainer extends Component {
|
|||
}
|
||||
|
||||
_isEnabled = ()=> {
|
||||
if (!this.isEnabled) {
|
||||
if (this.isEnabled === null) {
|
||||
// Cache this value so we don't have to recalculate on every swipe
|
||||
this.isEnabled = (
|
||||
(this.props.onSwipeLeft || this.props.onSwipeRight) &&
|
||||
|
|
Loading…
Add table
Reference in a new issue