wacom tablet on ubuntu problem selecting [message #1861663] |
Wed, 25 October 2023 22:43 |
|
My wacom tablet works fine in Ubuntu except in eclipse. There a single click should set the caret in a textviewer without selecting anything - just positioning the cursor. However I see the cursor move upward through the lines of text to the top of the file, selecting as it goes. See attached gif demonstrating the problem. Also I'm not able to close editors or views using the pen clicking on the 'X'. Any ideas?
|
|
|
|
Re: wacom tablet on ubuntu problem selecting [message #1861700 is a reply to message #1861699] |
Sat, 28 October 2023 22:58 |
|
I believe this block is involved but to be honest I'm not sure I follow the logic:
StyledText#doMouseLocationChange
// Is the mouse within the left client area border or on
// a different line? If not the autoscroll selection
// could be incorrectly reset. Fixes 1GKM3XS
boolean vchange = 0 <= y && y < clientAreaHeight || newCaretLine == 0 || newCaretLine == content.getLineCount() - 1;
boolean hchange = 0 <= x && x < clientAreaWidth || wordWrap || newCaretLine != content.getLineAtOffset(caretOffsets[0]);
if (vchange && hchange && (newCaretOffset != caretOffsets[0] || newCaretAlignemnt != caretAlignment)) {
setCaretOffsets(new int[] {newCaretOffset}, newCaretAlignemnt);
if (select) doMouseSelection();
showCaret();
}
if (!select) {
setCaretOffsets(new int[] {newCaretOffset}, newCaretAlignemnt);
clearSelection(true);
}
I looked on Bugzilla for 1GKM3XS but couldn't find it. Anybody got anything?
|
|
|
|
Powered by
FUDForum. Page generated in 0.02713 seconds