Jumps to top of page when clicking on an image or on next arrow in image gallery
Current behavior
In the case of an image gallery: if you click on the right arrow (to go to the next picture) or on a specific image, it does go to the next image or to the specific image but the page jumps all the way to the top.
Expected behavior
When clicking on the "next" arrow or a specific image, the gallery should display that image and no page movement should occur.
Steps to reproduce
- Setup a gallery Ex:
## Gallery
```gallery(42h)
https://source.unsplash.com/F8mUf0hjf74/1024x600
https://source.unsplash.com/-StqtXU35cA/1024x600
https://source.unsplash.com/BLTcKiKXbzU/1024x600
https://source.unsplash.com/qh1J3d4QzgA/1024x600
https://source.unsplash.com/rpvhOzyv2jM/1024x600
\```
- Click on next arrow or on an image
- Notice the page jumps to top
Environment
- Version : 0.11.16
- OS Version and name : macOS 10.14.4 (18E226)
Thanks so much for this terrific app! Using it everyday for my research.
IssueHunt Summary
Backers (Total: $40.00)
boostio ($40.00)
Submitted pull Requests
Become a backer now!
Or submit a pull request to get the deposits!
Tips
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on IssueHunt to raise funds.
Thank you for reporting.
Actually in the double page (toggle) mode, the page also jumps back to top as soon as you modify the markdown "code". Not sure it's a desired behavior? Thanks!!!
@boostio has funded $40.00 to this issue.
- Submit pull request via IssueHunt to receive this reward.
- Want to contribute? Chip in to this issue via IssueHunt.
- Checkout the IssueHunt Issue Explorer to see more funded issues.
- Need help from developers? Add your repository on IssueHunt to raise funds.
I have a question, can Gallery be used for local stored pics? such as
```gallery



Yes, at least it works for me (on macOS): but I have slashes (/) in the path not backslashes ()
```gallery


\```
Yes, at least it works for me (on macOS): but I have slashes (/) in the path not backslashes ()
```gallery   \```
But this is generated automaticly...
Is there a fix for this? When I add an image on a note then edit that note in any way, the page jumps all the way to the top. I added the image through dragging it. I have a Boostnote 0.11.17 currently
Possibly related to: https://github.com/BoostIO/Boostnote/issues/3023
@teeemomain The bug you've described is exactly the same with #3023, I've made a PR for it, hope it will get merged soon.
But I can't reproduce this image-clicking caused bug.