Skip to content
New issue

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

Carousel and slides migration #354

Merged
merged 1 commit into from
Sep 30, 2015

Conversation

dvoytenko
Copy link
Contributor

This is a big PR, but it's necessary. The main change is that the legacy SwipeX is replaced with new gestures. The gestures and motion are tuned up for responsiveness and smoothness.

let minDelta = 0;
let maxDelta = 0;
let prevTr = tr.NULL;
let nextTr = tr.NULL;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any chance we can rename the NULL function into noop or NOOP since i was confused at first why we had a NULL sentinel of some sort.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea! Done.

@erwinmombay
Copy link
Member

/cc @cramforce. for any after review comments

this.pos_ = e.position;
this.commitSwitch_(e.startPosition, this.pos_, dir);
});
this.setupGestures_();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we move the setupGestures_ call into BaseCarousel and add an interface to override.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@erwinmombay
Copy link
Member

just move setupGestures_ into base. LGTM afterwards.

dvoytenko added a commit that referenced this pull request Sep 30, 2015
@dvoytenko dvoytenko merged commit f1a8a29 into ampproject:master Sep 30, 2015
@dvoytenko dvoytenko deleted the carousel-gestures branch September 30, 2015 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants