Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355762 - Jerky animation during incremental search
Summary: Jerky animation during incremental search
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Editor (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.0 M1   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-24 16:30 EDT by Mark Macdonald CLA
Modified: 2013-05-29 16:40 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Macdonald CLA 2011-08-24 16:30:41 EDT
1. Open a large file (eg. editor.js) and press Ctrl+F. Ensure that "Incremental search" is enabled in the options.
2. Quickly type a query in the Find box (eg. "this.getAnnotation").
3. As you hit each character, the editor scrolls down to show the matched text. But sometimes it will flick back to a previous scroll position briefly, which makes the animation look jerky.

It should always be smooth.

I don't remember this happening while we were still using dojo.Animation, so this is probably a bug with orion.editor.util.Animation.
Comment 1 Mark Macdonald CLA 2011-09-08 16:53:15 EDT
(In reply to comment #0)
> I don't remember this happening while we were still using dojo.Animation, so
> this is probably a bug with orion.editor.util.Animation.

Correction: it does happen with the dojo Animation, but for some reason it's not as noticeable.
Comment 2 Silenio Quarti CLA 2013-03-13 16:44:16 EDT
I think this is fixed with the changes for bug#338362. I believe the problem was happening because each call to editor.moveSelection() would create an animation object and they would start running in parallel which could cause the scroll offset to go back and forward.

Mark, please try to latest and reopen if it still happens.