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

fix(FEC-7324): slider touch support #96

Merged
merged 5 commits into from
Oct 24, 2017
Merged

fix(FEC-7324): slider touch support #96

merged 5 commits into from
Oct 24, 2017

Conversation

dvh91
Copy link

@dvh91 dvh91 commented Oct 23, 2017

Description of the Changes

Support of touch move of slider component

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

@dvh91 dvh91 self-assigned this Oct 23, 2017
@dvh91 dvh91 requested a review from dan-ziv October 23, 2017 06:13
else if (e.changedTouches) { clientX = e.changedTouches[0].pageX }
else { clientX = e.clientX; }

let offsetLeft = clientX - this._sliderElement.getBoundingClientRect().left;
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't accessing getBoundingClientRect a performance hit?

Copy link
Author

Choose a reason for hiding this comment

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

There's actually a better way to implement it with fewer calls to getBoundingClientRect. calculate the getBoundingClientRect only when player size is changed.
Will change the PR tomorrow

Copy link
Contributor

Choose a reason for hiding this comment

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

10x, looking forward :-)

@OrenMe OrenMe merged commit 7c2dfa9 into master Oct 24, 2017
@OrenMe OrenMe deleted the FEC-7323 branch October 24, 2017 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants