scrolling with the scrollbars since the mouse can be captured nativly
momentarily.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40079
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void ScintillaWX::SetMouseCapture(bool on) {
if (mouseDownCaptures) {
- if (on && !stc->HasCapture())
+ if (on && !capturedMouse)
stc->CaptureMouse();
- else if (!on && stc->HasCapture())
+ else if (!on && capturedMouse && stc->HasCapture())
stc->ReleaseMouse();
- capturedMouse = stc->HasCapture();
+ capturedMouse = on;
}
}
bool ScintillaWX::HaveMouseCapture() {
- capturedMouse = stc->HasCapture();
return capturedMouse;
}
void ScintillaWX::SetMouseCapture(bool on) {
if (mouseDownCaptures) {
- if (on && !stc->HasCapture())
+ if (on && !capturedMouse)
stc->CaptureMouse();
- else if (!on && stc->HasCapture())
+ else if (!on && capturedMouse && stc->HasCapture())
stc->ReleaseMouse();
- capturedMouse = stc->HasCapture();
+ capturedMouse = on;
}
}
bool ScintillaWX::HaveMouseCapture() {
- capturedMouse = stc->HasCapture();
return capturedMouse;
}