From 35124352ed8b9f64920c30c4748d818338983888 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 27 Feb 2023 19:46:01 +0800 Subject: [PATCH] SessionCtl // Bind enableMouseScrollingForTDKCandidatesCocoa. --- Source/Modules/SessionCtl_HandleDisplay.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Modules/SessionCtl_HandleDisplay.swift b/Source/Modules/SessionCtl_HandleDisplay.swift index 4cd0f931..590e41a2 100644 --- a/Source/Modules/SessionCtl_HandleDisplay.swift +++ b/Source/Modules/SessionCtl_HandleDisplay.swift @@ -135,8 +135,9 @@ public extension SessionCtl { } } - if #available(macOS 10.15, *) { - if let ctlCandidateCurrent = candidateUI as? CtlCandidateTDK { + if let ctlCandidateCurrent = candidateUI as? CtlCandidateTDK { + ctlCandidateCurrent.useMouseScrolling = PrefMgr.shared.enableMouseScrollingForTDKCandidatesCocoa + if #available(macOS 10.15, *) { ctlCandidateCurrent.useCocoa = !PrefMgr.shared.enableSwiftUIForTDKCandidates } }