# Chinese character selection bar jumping around (mac)

**URL:** <https://forum.obsidian.md/t/chinese-character-selection-bar-jumping-around-mac/11256>\
**Category:** Bug graveyard\
**Tags:** upstream-bug, cjk, keyboard-input\
**Created:** [January 10, 2021, 5:24pm UTC](https://forum.obsidian.md/t/chinese-character-selection-bar-jumping-around-mac/11256 "2021-01-10T17:24:31Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![qzh](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/q/73ab20/32.png) [@qzh](https://forum.obsidian.md/u/qzh)\
**Post date:** [January 10, 2021, 5:24pm UTC](https://forum.obsidian.md/t/chinese-character-selection-bar-jumping-around-mac/11256/1 "2021-01-10T17:24:31Z")

</div>

### Steps to reproduce

1. launch Obsidian
2. start typing with Chinese input method (either mac built-in Chinese input source or Sougou)

### Expected result

The Chinese character selection bar appears right under the latin alphabet

1. in the case of Sougou (aligning with “1”)  
 ![截屏2021-01-11 01.02.21](https://forum.obsidian.md/uploads/default/original/2X/b/b86690f4542237117da6cda2525d1ab8c0deaced.png)
2. in the case of mac built-in Chinese input source (aligning with the 1st character)  
 ![截屏2021-01-11 01.01.59](https://forum.obsidian.md/uploads/default/original/2X/b/b0bf1bd656532842542047ab6cb0fb31f8b0bb73.png)

### Actual result

there can be 2 kinds of anomalies in terms of the position of the Chinese character selection bar:

1. vertically, it may appear half above the latin alphabet, or it may appear right. The vertical position is fixed within a relaunch, and may change between relaunches.  
When it’s wrong, it’s like this:  

2. horizontally, it may appear right, but more often than not the selection bar is in the wrong place.  
The first typing after relaunch is usually correct horizontally, but then when you type within a line or between lines the selection bar appears all over the place.  

The exact bug happens with mac built-in Chinese input source. The screenshots are omitted due to the upload restriction.

### Environment

- Operating system: mac OS Big Sur (11.1)
- Obsidian version: v0.10.6

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [January 10, 2021, 6:02pm UTC](https://forum.obsidian.md/t/chinese-character-selection-bar-jumping-around-mac/11256/2 "2021-01-10T18:02:07Z")

</div>

We have know problems with the Sougou system. But the mac built in should work, can you post screenshots with it?

what’s your installer version? Are you using a custom css or third party plugins?

---

<div class="post-metadata">

**Author:** ![qzh](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/q/73ab20/32.png) [@qzh](https://forum.obsidian.md/u/qzh)\
**Post date:** [January 10, 2021, 6:12pm UTC](https://forum.obsidian.md/t/chinese-character-selection-bar-jumping-around-mac/11256/3 "2021-01-10T18:12:54Z")

</div>

![截屏2021-01-11 00.39.54](https://forum.obsidian.md/uploads/default/original/2X/9/90ab4bc4654e79a7920f4449d21dce817f8af090.jpeg)  
 ![截屏2021-01-11 00.39.36](https://forum.obsidian.md/uploads/default/original/2X/3/31a19819f3e052192a47ad3475ddf5ba73fd6bd1.jpeg)  
 ![截屏2021-01-11 00.38.51](https://forum.obsidian.md/uploads/default/original/2X/5/54ca647e2d1c11a3b7ee8801210150b88bbff317.jpeg)

The issues with the mac built-in are the same with those of Sougou. Actually I haven’t found other issues with Sougou.

the installer version is v0.10.6 (I’ve re-installed the app, and before that it was v0.10.1 and the bug was the same). I’ve disabled custom css or third party plugins.

---

<div class="post-metadata">

**Author:** ![qzh](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/q/73ab20/32.png) [@qzh](https://forum.obsidian.md/u/qzh)\
**Post date:** [January 10, 2021, 6:23pm UTC](https://forum.obsidian.md/t/chinese-character-selection-bar-jumping-around-mac/11256/4 "2021-01-10T18:23:49Z")

</div>

Actually I’ve found the pattern after a line break : the longer the line is, the more dramatic the moving of selection bar would be at the start of the next line. But within a line, it still happens the moving of the bar, but it’s more erratic and subtle, and I couldn’t find a pattern.

---

<div class="post-metadata">

**Author:** ![qzh](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/q/73ab20/32.png) [@qzh](https://forum.obsidian.md/u/qzh)\
**Post date:** [January 11, 2021, 12:57pm UTC](https://forum.obsidian.md/t/chinese-character-selection-bar-jumping-around-mac/11256/5 "2021-01-11T12:57:16Z")

</div>

I’ve tried yet another input method (rime/squirrel) and the bug is also replicated. I can confirm this bug is common to all Chinese input methods.

 ![截屏2021-01-11 20.47.55](https://forum.obsidian.md/uploads/default/original/2X/a/a441461ae9395c68020f52327eb699aba74ab425.png)  
 ![截屏2021-01-11 20.48.56](https://forum.obsidian.md/uploads/default/original/2X/9/93d041d9298dcd4e57c1e225fc288d69346850bc.png)

Other electron apps (eg. vscode, typora) and all the mac based apps behave normal in this regard.

---

<div class="post-metadata">

**Author:** ![qzh](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/q/73ab20/32.png) [@qzh](https://forum.obsidian.md/u/qzh)\
**Post date:** [January 11, 2021, 4:28pm UTC](https://forum.obsidian.md/t/chinese-character-selection-bar-jumping-around-mac/11256/6 "2021-01-11T16:28:41Z")

</div>

The phenomenon of selection bar jumping around also happens on the codemirror webpage. Seems that it’s a bug of codemirror.

---

<div class="post-metadata">

**Author:** ![GLight](https://forum.obsidian.md/user_avatar/forum.obsidian.md/glight/32/4851_2.png) [@GLight](https://forum.obsidian.md/u/GLight)\
**Post date:** [March 9, 2021, 5:33am UTC](https://forum.obsidian.md/t/chinese-character-selection-bar-jumping-around-mac/11256/7 "2021-03-09T05:33:05Z")

</div>

I‘d like to give my 2 cents on this issue.

![Mar-09-2021 13-34-40](https://forum.obsidian.md/uploads/default/original/2X/b/bc300927f1105366912603bb03744caece4242a7.gif)

There is a misalignment between the position of cursor and the Sogou candidate-word bar when the position of the cursor is just changed. The change of the position of Sogou candidate-word bar is one step later than the one of the cursor.

Hope this is helpful for locating the problem.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [March 14, 2021, 9:31pm UTC](https://forum.obsidian.md/t/chinese-character-selection-bar-jumping-around-mac/11256/8 "2021-03-14T21:31:58Z")

</div>

let me know if this is this better in 0.11.7

---

<div class="post-metadata">

**Author:** ![GLight](https://forum.obsidian.md/user_avatar/forum.obsidian.md/glight/32/4851_2.png) [@GLight](https://forum.obsidian.md/u/GLight)\
**Post date:** [March 15, 2021, 5:02am UTC](https://forum.obsidian.md/t/chinese-character-selection-bar-jumping-around-mac/11256/9 "2021-03-15T05:02:40Z")

</div>

Hi， I think it is not solved in 0.11.7.

And this lag can also be reproduced with the MacOS build-in Pinyin input method.

I did a few more tests on this issue:  
the lag only happens when I cancel/interrupt the current input (e.g by pressing ESC).

![Mar-15-2021 12-56-10](https://forum.obsidian.md/uploads/default/original/2X/5/5c9398af68698e81641b3fc84308f178edbd4595.gif)

![Mar-15-2021 12-56-42](https://forum.obsidian.md/uploads/default/original/2X/b/b80dbd8f7e215c6cac50f18e05225a44bc7cfee6.gif)

In case I finish the input, everything goes fine.

![Mar-15-2021 12-57-55](https://forum.obsidian.md/uploads/default/original/2X/3/3286d9b59fed7c7f1dbc955da10a9c3701f9a072.gif)

![Mar-15-2021 13-04-32](https://forum.obsidian.md/uploads/default/original/2X/d/d4a2cad620f127e7c0085abf39b67bfe294c8160.gif)

This lag does not happen in the other applications, such as the build-in Memo, so I suppose this may be an Obsidian-specific issue.

![Mar-15-2021 13-01-56](https://forum.obsidian.md/uploads/default/original/2X/8/82233e058d0b4529ab2e2ad906f1869741376b00.gif)

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [May 26, 2022, 12:59pm UTC](https://forum.obsidian.md/t/chinese-character-selection-bar-jumping-around-mac/11256/10 "2022-05-26T12:59:54Z")

</div>

Closed on May 26, 2022, 12:59pm UTC



---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [October 13, 2022, 4:11pm UTC](https://forum.obsidian.md/t/chinese-character-selection-bar-jumping-around-mac/11256/11 "2022-10-13T16:11:20Z")

</div>

Archived on October 13, 2022, 4:11pm UTC


