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

Spacing does not size horizontal gesture #41

Open
mees-brenzie opened this issue Nov 4, 2020 · 1 comment
Open

Spacing does not size horizontal gesture #41

mees-brenzie opened this issue Nov 4, 2020 · 1 comment

Comments

@mees-brenzie
Copy link

Hi!

First of all, thank you for this library!

I noticed, when you change the spacing attribute, the horizontal sliding gesture does not scale with it. An example shown here:
Desktop-20201104-12372201-online
(scaling set to 30 and size 36)

Hope you can review this issue!
All the best

@ishmelev23
Copy link

@thangmam @p30arena guys, just replace the index calculation with the next block:

var i = (_pos.dx + widget.spacing / 2) / (widget.size + widget.spacing);
var newRating = widget.allowHalfRating ? i : i.ceilToDouble();

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

No branches or pull requests

2 participants