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

Jump using title tag and roll problem. #4429

Closed
HYBB-rash opened this issue May 25, 2021 · 8 comments
Closed

Jump using title tag and roll problem. #4429

HYBB-rash opened this issue May 25, 2021 · 8 comments

Comments

@HYBB-rash
Copy link

When I use jump function by title tag, I must double tick to jump. I don't know what happen in typora.
jump_gif
At the same time, roll will have the same problem. Typora will shake if I try to roll. I feel bad when I am focus on typing.
I find version 0.9.98 is good, but the 0.10.11 will have this problem.

@HYBB-rash
Copy link
Author

When I try to roll my file, Typora will shake like this gif.
typora_bug5
This problem is not good for me when I am typing. Where is Typora log file? I could provide more message if I can find the log file, please help me resolve this shake problem ...

@ghost
Copy link

ghost commented May 25, 2021

Here info on how to get the logs https://support.typora.io/Get-Logs/

On Windows there is a typora.log under C:\Users\{username}\AppData\Roaming\Typora.
You could also click “Open Theme Folder” in preference panel, and find typora.log on its parent folder.

@HYBB-rash
Copy link
Author

HYBB-rash commented May 25, 2021

Here info on how to get the logs https://support.typora.io/Get-Logs/

On Windows there is a typora.log under C:\Users\{username}\AppData\Roaming\Typora.
You could also click “Open Theme Folder” in preference panel, and find typora.log on its parent folder.

@shen897 Thanks! I had found the log file.
Maybe this error message is valued.

ERROR 2021/5/25 上午10:14:15  unhandledRejection TypeError: Cannot read property 'close' of null
    at C:\Program Files\Typora\resources\app\atom.asar\updater.js:286:27
INFO 2021/5/25 上午10:14:15  [blur] 2
INFO 2021/5/25 上午10:14:17  [focus] 2
INFO 2021/5/25 上午10:14:17  C:\Users\hyong\AppData\Local\Temp\typora-update-x64-0.10.11.exe
INFO 2021/5/25 上午10:14:17  ----------------before-quit-----------------
INFO 2021/5/25 上午10:14:17  ----------------before-quit-----------------
INFO 2021/5/25 上午10:14:17  ------------------will-quit------------------
INFO 2021/5/25 上午10:14:44  luanchFromDiffVersion, pre version is 0.9.98
INFO 2021/5/25 上午10:14:44  overwriteThemeFolder
INFO 2021/5/25 上午10:14:44  ------------------start------------------
INFO 2021/5/25 上午10:14:44  typora version: 0.10.11
INFO 2021/5/25 上午10:14:45  [Raven] instanceKey = 8ac91cc0-4464-4805-a518-78de0f1ef68d
INFO 2021/5/25 上午10:14:45  [Raven] userId = 6ff4909c-53b1-4267-9a82-c51bc1ad13e2
INFO 2021/5/25 上午10:14:45  addRecentDocument
INFO 2021/5/25 上午10:14:45  added recovery 1 D:\Users\hyong\Documents\MyNote\English\paper\cet-6\cet6-2020-9-1.md undefined (0)
INFO 2021/5/25 上午10:14:45  [focus] 1
INFO 2021/5/25 上午10:14:46  synced recovery
INFO 2021/5/25 上午10:14:47  handle document.loadInitData
INFO 2021/5/25 上午10:14:47  added recovery 1 D:\Users\hyong\Documents\MyNote\English\paper\cet-6\cet6-2020-9-1.md undefined (0)
INFO 2021/5/25 上午10:14:47  synced recovery
INFO 2021/5/25 上午10:14:58  [blur] 1
INFO 2021/5/25 上午10:14:58  [win] blur
INFO 2021/5/25 上午10:14:59  [focus] 1
INFO 2021/5/25 上午10:15:01  [blur] 1
INFO 2021/5/25 上午10:15:01  [win] blur
INFO 2021/5/25 上午10:15:02  [focus] 1
INFO 2021/5/25 上午10:15:43  [blur] 1
INFO 2021/5/25 上午10:15:43  [win] blur
INFO 2021/5/25 上午10:15:44  [focus] 1
INFO 2021/5/25 上午10:15:46  [blur] 1
INFO 2021/5/25 上午10:15:46  [win] blur

@abnerlee
Copy link
Contributor

  1. This is happens in default theme?
  2. Could you attach or send a sample md file to hi@typora.io and provide steps to reproduce this issue?

@HYBB-rash
Copy link
Author

  1. This is happens in default theme?
  2. Could you attach or send a sample md file to hi@typora.io and provide steps to reproduce this issue?

@abnerlee Thanks to reply!

In the gif what I show is not in default theme. The theme name is Gitbook Teal. But when I switch to the default theme, there is the same problem in the default theme.

Just wait a moment, I will sent more detail by email.

@HYBB-rash
Copy link
Author

  1. This is happens in default theme?
  2. Could you attach or send a sample md file to hi@typora.io and provide steps to reproduce this issue?

@abnerlee Sorry, finally I find that the problem is only happen in the Gitbook theme.

It just a theme problem?

I have sent the email.

@h16nning
Copy link

h16nning commented May 30, 2021

Hello @abnerlee and @HYBB-rash, I think I have isolated what causes this problem. It seems to appear when you add a transition to the class outline-label like I have done it in my theme.

The stuttering can be reproduced by creating a theme which just contains this bit of css:

.outline-label {
  color: black;
  transition-duration: 1s;
  transition-property: color;
}

.outline-label.outline-active {
  color: blue;
}

The issue occurs only if the outline in the sidebar is opened. For me it sometimes takes a little bit of scrolling until it starts to stutter (and it only becomes obvious within a document with quite a few headers).

I will update the theme soon by removing this transition.

However, I don't know whether this is an expected behavior as it didn't seem to be an issue in version 0.9.98.

It isn't a major issue though, as the transition duration in my theme was only 0.3s long.

@h16nning
Copy link

@abnerlee I would just like to point out that also other parts stop behaving as expected when they have an transition property applied since version 0.10.11, in case you are not aware of it.
For example the context menu doesn't appear (and only flashes shortly) on unfocused sidebar items, as mentioned here. Though again, the fix is pretty easy - it's just a matter of removing this transition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants