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

In org-mode, scrolling past inline images will sometimes skip many lines #3824

Open
ipsod opened this issue Nov 15, 2015 · 10 comments

Comments

Projects
None yet
3 participants
@ipsod
Copy link

commented Nov 15, 2015

The problem

A Concrete Example
When moving the cursor line-wise (using j) past a large image on line 11, the cursor goes from line 11 to line 38 in a single jump, skipping lines 12-37. It does not happen at first, and seems to only occur after some scrolling has happened on the page.

To reproduce

  1. Make a folder.
  2. Save the image from https://i.ytimg.com/vi/dDBOl-SmbiE/maxresdefault.jpg in the folder as maxresdefault.jpg.
  3. Edit a new org-mode file in the folder, maybe test.org, and add the text at the text at the bottom of the instructions.
  4. Turn on inline images and try scrolling past the two images a few times.

test.org:

* Testing image scrolling
test
test
test
test
test
test
test
test
test
[[file:maxresdefault.jpg]]
[[file:maxresdefault.jpg]]
* test
test
test
test
test
test
test
test
test
test
test
* test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test

@ipsod ipsod changed the title In org-mode, scrolling past inline images will sometimes skip In org-mode, scrolling past inline images will sometimes skip many lines Nov 15, 2015

@StreakyCobra

This comment has been minimized.

Copy link
Contributor

commented Nov 16, 2015

I can reproduce this bug. Do you have the possibility to try on a raw emacs with org-mode to know if it is a spacemacs bug? ☺️

@cpaulik

This comment has been minimized.

Copy link
Contributor

commented Nov 16, 2015

I just tried several times on emacs 24.5.1 and latest org-plus-contrib and could not reproduce this. Which versions of emacs and org are you using?

@ipsod

This comment has been minimized.

Copy link
Author

commented Nov 17, 2015

I'm on emacs 24.5.1, also.

@StreakyCobra

This comment has been minimized.

Copy link
Contributor

commented Nov 17, 2015

I'm on linux, emacs 24.5.1 too. Maybe there is a difference if your screen size is big enough to not have to scroll after second image, or maybe there is a difference with scroll-margin.

@cpaulik

This comment has been minimized.

Copy link
Contributor

commented Nov 17, 2015

I have a HDPI screen on which both images fit easily. So it might be that

@StreakyCobra

This comment has been minimized.

Copy link
Contributor

commented Nov 18, 2015

Probably, try to add more than 2 images then.

@cpaulik

This comment has been minimized.

Copy link
Contributor

commented Nov 18, 2015

Tried with 4 images, and also increased the image size so that only one fits on the screen at a time. Still no problems with the scrolling.

@StreakyCobra

This comment has been minimized.

Copy link
Contributor

commented Nov 18, 2015

Hum, do you have scroll-margin enabled at 5?

@cpaulik

This comment has been minimized.

Copy link
Contributor

commented Nov 18, 2015

Ah, I had dotspacemacs-smooth-scrolling disabled. Enabling it reproduces the error.

@ipsod

This comment has been minimized.

Copy link
Author

commented Nov 18, 2015

Cool, I'm glad to know that I can disable dotspacemacs-smooth-scrolling for a temp fix.

Disabling it avoids the error here, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.