KMHomeScrollView.swift 365 B

123456789101112131415161718192021
  1. //
  2. // KMHomeScrollView.swift
  3. // PDF Master
  4. //
  5. // Created by wanjun on 2023/7/18.
  6. //
  7. import Cocoa
  8. class KMHomeScrollView: NSScrollView {
  9. override func draw(_ dirtyRect: NSRect) {
  10. super.draw(dirtyRect)
  11. // Drawing code here.
  12. }
  13. override func scrollWheel(with event: NSEvent) {
  14. superview!.scrollWheel(with: event)
  15. }
  16. }