From c32f6adbe3ba88dc14839280213578c7656d2e38 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 6 Nov 2023 08:05:42 +1100 Subject: Mouse capture and automatic scrolling are always started and stopped together so encapsulate that in ChangeMouseCapture method. Does not change behaviour. --- src/Editor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Editor.h') diff --git a/src/Editor.h b/src/Editor.h index 923e3b7a3..b1b426dff 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -548,6 +548,7 @@ protected: // ScintillaBase subclass needs access to much of Editor virtual void FineTickerStart(TickReason reason, int millis, int tolerance); virtual void FineTickerCancel(TickReason reason); virtual bool SetIdle(bool) { return false; } + void ChangeMouseCapture(bool on); virtual void SetMouseCapture(bool on) = 0; virtual bool HaveMouseCapture() = 0; void SetFocusState(bool focusState); -- cgit v1.2.3