| Summary: | Weird selection behavior changing direction during auto scroll | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Felipe Heidrich <eclipse.felipe> |
| Component: | Editor | Assignee: | Felipe Heidrich <eclipse.felipe> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Silenio_Quarti |
| Version: | unspecified | ||
| Target Milestone: | 0.3 M1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Felipe Heidrich
This happens because auto scroll uses setSelection() to scroll the page. setSelection() uses showCaret() to scroll, showCaret when scroll tries to fit in the client area as much of selection as possible. fixed http://git.eclipse.org/c/e4/org.eclipse.orion.client.git/commit/?id=33ead4c3ee21c8925c0390d16b6285107dba07f7 http://git.eclipse.org/c/e4/org.eclipse.orion.client.git/commit/?id=7f432677affd15d497af9994577b6740e5844edd The problem was also reproducible with using shift+arrow up/down. I changed the internal _showCaret() to scroll to show only the caret and do not try to show as much as the selection as possible - except when the called from the showSelection() API. |