Skip to content

Commit

Permalink
fix: 106190 captureMouse was being forced to false breaking FineTicke…
Browse files Browse the repository at this point in the history
…rCancel on ButtonUp

(integrated from master branch change c745651 by cgchoffman <cgchoffman@gmail.com>)
  • Loading branch information
th3coop committed Feb 26, 2015
1 parent a06012f commit e0fb5da
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions contrib/patches/scintilla/win32.patch
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,21 @@ diff -u -r1.156 win32/ScintillaWin.cxx
ButtonDown(Point::FromLong(static_cast<long>(lParam)), ::GetMessageTime(),
(wParam & MK_SHIFT) != 0,
(wParam & MK_CONTROL) != 0,
@@ -1347,7 +1347,13 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_
return 1; // Avoid any background erasure as whole window painted.

case WM_CAPTURECHANGED:
- capturedMouse = false;
+ // XXX
+ // This line is forcing captureMouse to false which breaks Editor::
+ // ButtonUp so it never hits FineTickerCancel(tickScroll)
+ // if (FineTickerAvailable()) {
+ // FineTickerCancel(tickScroll);
+ // }
+ //capturedMouse = false;
return 0;

case WM_IME_SETCONTEXT:
@@ -1573,6 +1594,41 @@ bool ScintillaWin::PaintContains(PRectangle rc) {
return true;
}
Expand Down

0 comments on commit e0fb5da

Please sign in to comment.