Changeset 0b21230c60038729b397adb87a85bb71f24a661c
- Timestamp:
- 10/28/09 00:18:40 (4 weeks ago)
- Author:
- Nelson Elhage <nelhage@mit.edu>
- git-author:
- Nelson Elhage <nelhage@mit.edu> / 2009-10-28T00:01:17Z-0400
- Parents:
- 2447a1ba09d4f7cff926232db18cfe3ac3c96ea6
- git-committer:
- Nelson Elhage <nelhage@mit.edu> / 2009-10-28T00:18:40Z-0400
- Message:
-
Prevent scrollmode normal from bouncing.
If there is a large message on screen, the normal scrollmode is prone
to 'bouncing' between two messages as the large message goes on and
off screen and the point bounces between the top and bottom quarters
of the screen.
If the point is in the top quarter of the screen, but moving it would
put it in the bottom quarter, don't move it, preventing this bouncing
behavior.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r369707e
|
r0b21230
|
|
| 129 | 129 | lines = owl_message_get_numlines(owl_view_iterator_get_message(it)); |
| 130 | 130 | /* will we run the mw->current off the screen? */ |
| 131 | | if ( lines+y >= mw->win.lines ) { |
| | 131 | if ( lines+y >= (mw->win.lines * 3)/4 ) { |
| 132 | 132 | owl_view_iterator_next(it); |
| 133 | 133 | if(owl_view_iterator_cmp(it, mw->current) > 0) |