mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-25 00:25:03 +08:00
fix(swipe): Cache isEnabled: false, fix scrolling in Trash
This commit is contained in:
parent
b64719d09f
commit
471bbbe1e3
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…
Reference in a new issue