Some fixes for scroll bar code.
commita7ef7a0e53ae1f391f4bda207bb5e9b9d833d354
authorMartin Rudalics <rudalics@gmx.at>
Thu, 28 Aug 2014 06:46:58 +0000 (28 08:46 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Thu, 28 Aug 2014 06:46:58 +0000 (28 08:46 +0200)
tree47c95273a03b30fdcc7f5c4e3224a6fe298668a0
parentf1fdf67b4e87cf5974fa4e445b23fef1d10bb7cb
Some fixes for scroll bar code.

* w32term.c (w32_horizontal_scroll_bar_handle_click): In
`event->y' return entire range (the size of the scroll bar minus
that of the thumb).
* xterm.c (xm_scroll_callback, xaw_jump_callback): In `whole'
return entire range (the scaled size of the scroll bar minus
that of the slider).  In `portion' return the scaled position of
the slider.
(xaw_jump_callback): Restore part of code for vertical scroll
bar broken in change from 2014-07-27.
(xaw_scroll_callback): Provide incremental scrolling with
horizontal scroll bars.
(x_scroll_bar_handle_click): Fix typo introduced in change from
2014-07-27.
* scroll-bar.el (scroll-bar-horizontal-drag-1): Handle new
interpretation of `portion-whole'.
lisp/ChangeLog
lisp/scroll-bar.el
src/ChangeLog
src/w32term.c
src/xterm.c