ajaxorg / ace

Ace (Ajax.org Cloud9 Editor)
https://ace.c9.io
Other
26.74k stars 5.28k forks source link

Find And Replace Doesn't Work On Android Browser #5285

Open A99US opened 1 year ago

A99US commented 1 year ago

Describe the bug

Prev and Next button doesn't work in Find and Replace function on Android Browser (tested on opera and chrome).

Expected Behavior

When you click Next button, pointer will select the next found keyword. When you click Prev button, pointer will select the previous found keyword.

Current Behavior

Sometimes it doesn't work at all, sometimes it skip certain amount, and sometimes it will go back-and-forth to two same numbers when you click Next or Prev.

For example, when I click Next, it's not going to the next found keyword. It will stay at first occurrence. When I click Prev, it will skip a few amount that is found. Let's say it found 32 keywords in the editor and the active pointer is at first occurrence, when I click Prev it will go to 30. Click Prev and it goes to 27. Click Prev again and it goes to 20.

Reproduction Steps

Live Preview Source Code

Possible Solution

No response

Additional Information/Context

No response

Ace Version / Browser / OS / Keyboard layout

Ace Version : 1.24.0 , Chrome : 115.0.5790.166 , Opera (Not opera mini) : 76.2.4027.73374 , Android : 8.1.0

github-actions[bot] commented 1 month ago

This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

A99US commented 3 weeks ago

I just upgrade ace version to 1.36.2 and can confirm the bug still exist.