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 PostStreamScrubber click #1945

Merged
merged 1 commit into from
Apr 10, 2020
Merged

Conversation

w-4
Copy link
Contributor

@w-4 w-4 commented Nov 28, 2019

Fixes a bug. To replicate:

Go to any discussion on the desktop version, f.e. https://discuss.flarum.org/d/187-word-association-game
Click on the scrubber scrollbar, when it is not on the first position. Instead of the clicked position it will jump back to the first position.

Changes proposed in this pull request:

This is because $scrollbar.offset().top adjusts based on the scrolled position, while clientY of the mouseevent is independent of the scrolled position. Use pageY instead.

Shouldn't affect mobile, since there's no click functionality there.

Confirmed

  • Frontend changes: tested on a local Flarum installation.

@stale
Copy link

stale bot commented Feb 26, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We do this to keep the amount of open issues to a manageable minimum.
In any case, thanks for taking an interest in this software and contributing by opening the issue in the first place!

@stale stale bot added the stale Issues that have had over 90 days of inactivity label Feb 26, 2020
Copy link
Member

@askvortsov1 askvortsov1 left a comment

Choose a reason for hiding this comment

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

I can confirm that this fixes the issue.

@stale stale bot removed the stale Issues that have had over 90 days of inactivity label Mar 27, 2020
@franzliedke franzliedke merged commit 117c2f6 into flarum:master Apr 10, 2020
@franzliedke franzliedke added this to the 0.1.0-beta.13 milestone Apr 10, 2020
@franzliedke
Copy link
Contributor

Thanks a lot @w-4 and sorry for letting you wait so long!

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.

3 participants