We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a component like the following:
import Ember from 'ember'; import RecognizerMixin from 'ember-gestures/mixins/recognizers'; export default Ember.Component.extend(RecognizerMixin, { recognizers: 'swipe', isContentInViewport: false, swipeRight() { this.set('isContentInViewport', true); }, swipeLeft() { this.set('isContentInViewport', true); } });
<div class="{{if isContentInViewport 'is-content-in-viewport'}} content"> <div class="title">{{page.title}}</div> </div>
The first swipe works perfectly. However, after the first swipe and as soon as I set the property which leads to a DOM re-render, swipe stops working.
swipe
What am I missing?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a component like the following:
The first
swipe
works perfectly. However, after the first swipe and as soon as I set the property which leads to a DOM re-render, swipe stops working.What am I missing?
The text was updated successfully, but these errors were encountered: