mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
fix workarea perf bug when keeping mouse pressed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@4989 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e05f522b30
commit
d8969b38e4
@ -1,3 +1,8 @@
|
|||||||
|
2002-07-26 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
|
* WorkArea.C (work_area_handler): set y_old and x_old to some
|
||||||
|
values in the MOUSE or DRAG events
|
||||||
|
|
||||||
2002-08-06 John Levon <levon@movementarian.org>
|
2002-08-06 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
* sp_spell.C: let the new aspell pspell work
|
* sp_spell.C: let the new aspell pspell work
|
||||||
|
@ -335,7 +335,7 @@ int WorkArea::work_area_handler(FL_OBJECT * ob, int event,
|
|||||||
{
|
{
|
||||||
static int x_old = -1;
|
static int x_old = -1;
|
||||||
static int y_old = -1;
|
static int y_old = -1;
|
||||||
static long scrollbar_value_old = -1;
|
static double scrollbar_value_old = -1;
|
||||||
|
|
||||||
XEvent * ev = static_cast<XEvent*>(xev);
|
XEvent * ev = static_cast<XEvent*>(xev);
|
||||||
WorkArea * area = static_cast<WorkArea*>(ob->u_vdata);
|
WorkArea * area = static_cast<WorkArea*>(ob->u_vdata);
|
||||||
@ -378,6 +378,9 @@ int WorkArea::work_area_handler(FL_OBJECT * ob, int event,
|
|||||||
ev->xmotion.y != y_old ||
|
ev->xmotion.y != y_old ||
|
||||||
fl_get_scrollbar_value(area->scrollbar) != scrollbar_value_old
|
fl_get_scrollbar_value(area->scrollbar) != scrollbar_value_old
|
||||||
) {
|
) {
|
||||||
|
x_old = ev->xmotion.x;
|
||||||
|
y_old = ev->xmotion.y;
|
||||||
|
scrollbar_value_old = fl_get_scrollbar_value(area->scrollbar);
|
||||||
lyxerr[Debug::WORKAREA] << "Workarea event: MOUSE" << endl;
|
lyxerr[Debug::WORKAREA] << "Workarea event: MOUSE" << endl;
|
||||||
area->workAreaMotionNotify(ev->xmotion.x - ob->x,
|
area->workAreaMotionNotify(ev->xmotion.x - ob->x,
|
||||||
ev->xmotion.y - ob->y,
|
ev->xmotion.y - ob->y,
|
||||||
|
@ -71,7 +71,7 @@ What's new
|
|||||||
- fix bug where using case changing commands on the last word of a
|
- fix bug where using case changing commands on the last word of a
|
||||||
paragraph would change the whole document (without any undo possible!)
|
paragraph would change the whole document (without any undo possible!)
|
||||||
|
|
||||||
- fix performance bug when selecting table cells with the mouse
|
- fix performance bugs when selecting with the mouse
|
||||||
|
|
||||||
- in commands that operate on words (Insert>Index...), make sure not
|
- in commands that operate on words (Insert>Index...), make sure not
|
||||||
to include insets in words
|
to include insets in words
|
||||||
|
Loading…
Reference in New Issue
Block a user