BoostNote-Legacy icon indicating copy to clipboard operation
BoostNote-Legacy copied to clipboard

Jumps to top of page when clicking on an image or on next arrow in image gallery

Open mfouet opened this issue 7 years ago • 9 comments

Issuehunt badges

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

  1. 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
\```
  1. Click on next arrow or on an image
  2. 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)

Submitted pull Requests


Become a backer now!

Or submit a pull request to get the deposits!

Tips

mfouet avatar May 22 '19 22:05 mfouet

Thank you for reporting.

ZeroX-DG avatar May 23 '19 02:05 ZeroX-DG

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!!!

mfouet avatar May 23 '19 17:05 mfouet

@boostio has funded $40.00 to this issue.


IssueHuntBot avatar May 23 '19 17:05 IssueHuntBot

I have a question, can Gallery be used for local stored pics? such as


```gallery
![d20f9ee3.png](:storage\f49478e3-8d06-4299-b954-d89c272499e2\d20f9ee3.png)
![57733281.png](:storage\f49478e3-8d06-4299-b954-d89c272499e2\57733281.png)
![9e7932b7.png](:storage\f49478e3-8d06-4299-b954-d89c272499e2\9e7932b7.png)

zzxxhhzxh avatar May 24 '19 20:05 zzxxhhzxh

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

```gallery
![test](:storage/1040476d-1117-42d1-a460-f4041ab54f72/e869e5c2.png)
![test2](:storage/1040476d-1117-42d1-a460-f4041ab54f72/48980db2.png)
\```

mfouet avatar May 24 '19 22:05 mfouet

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

```gallery
![test](:storage/1040476d-1117-42d1-a460-f4041ab54f72/e869e5c2.png)
![test2](:storage/1040476d-1117-42d1-a460-f4041ab54f72/48980db2.png)
\```

But this is generated automaticly...

zzxxhhzxh avatar May 28 '19 01:05 zzxxhhzxh

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

motchiFX avatar Jul 13 '19 10:07 motchiFX

Possibly related to: https://github.com/BoostIO/Boostnote/issues/3023

Flexo013 avatar Jul 15 '19 12:07 Flexo013

@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.

hikerpig avatar Aug 02 '19 05:08 hikerpig