// // KMScroller.swift // Cisdem PDFMaster // // Created by liujiajie on 2024/1/18. // import Cocoa class KMScroller: NSScroller{ var isScrolling = false override class var isCompatibleWithOverlayScrollers: Bool{ return true } override func trackKnob(with event: NSEvent) { isScrolling = true super.trackKnob(with: event) isScrolling = false superview?.needsDisplay = true } }