The use of top-level lyx::dispatch() ensure that the CoordCache is OK at each step.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16348
a592a061-630c-0410-9148-
cb99ea01b6c8
setCursorFromCoordinates(cur, cmd.x, y);
cur.x_target() = cmd.x;
if (cmd.y >= wh)
- cursorDown(cur);
+ lyx::dispatch(FuncRequest(LFUN_DOWN_SELECT));
else if (cmd.y < 0)
- cursorUp(cur);
+ lyx::dispatch(FuncRequest(LFUN_UP_SELECT));
// This is to allow jumping over large insets
if (cur.top() == old) {
if (cmd.y >= wh)
- cursorDown(cur);
+ lyx::dispatch(FuncRequest(LFUN_DOWN_SELECT));
else if (cmd.y < 0)
- cursorUp(cur);
+ lyx::dispatch(FuncRequest(LFUN_UP_SELECT));
}
if (cur.top() == old)