2021-11-10 13:22:53 -08:00
|
|
|
//
|
|
|
|
// DisplayScrollView.swift
|
|
|
|
// A2Mac
|
|
|
|
//
|
|
|
|
// Created by Tamas Rudnai on 11/10/21.
|
|
|
|
// Copyright © 2021 GameAlloy. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import Cocoa
|
|
|
|
|
|
|
|
class DisplayScrollView : NSScrollView {
|
|
|
|
|
|
|
|
override func scrollWheel(with event: NSEvent) {
|
2022-11-29 19:00:04 -08:00
|
|
|
// print("DisplayScrollView.scrollWheel")
|
2022-12-03 22:02:35 -08:00
|
|
|
DebuggerViewController.shared?.scrollWheel(with: event)
|
2021-11-10 13:22:53 -08:00
|
|
|
}
|
|
|
|
|
2022-12-03 22:02:35 -08:00
|
|
|
// override func scrollPageUp(_ sender: Any?) {
|
|
|
|
// if scrollEnabled {
|
|
|
|
// super.scrollPageUp(sender)
|
|
|
|
// }
|
2022-02-14 18:41:59 +01:00
|
|
|
// }
|
2022-12-03 22:02:35 -08:00
|
|
|
// override func scrollLineUp(_ sender: Any?) {
|
|
|
|
// if scrollEnabled {
|
|
|
|
// super.scrollLineUp(sender)
|
|
|
|
// }
|
2022-02-14 18:41:59 +01:00
|
|
|
// }
|
2022-12-03 22:02:35 -08:00
|
|
|
// override func scrollPageDown(_ sender: Any?) {
|
|
|
|
// if scrollEnabled {
|
|
|
|
// super.scrollPageDown(sender)
|
|
|
|
// }
|
2022-02-14 18:41:59 +01:00
|
|
|
// }
|
2022-12-03 22:02:35 -08:00
|
|
|
// override func scrollLineDown(_ sender: Any?) {
|
|
|
|
// if scrollEnabled {
|
|
|
|
// super.scrollLineDown(sender)
|
|
|
|
// }
|
2022-02-14 18:41:59 +01:00
|
|
|
// }
|
2022-12-03 22:02:35 -08:00
|
|
|
// override func scrollToBeginningOfDocument(_ sender: Any?) {
|
|
|
|
// if scrollEnabled {
|
|
|
|
// super.scrollToBeginningOfDocument(sender)
|
|
|
|
// }
|
2022-02-14 18:41:59 +01:00
|
|
|
// }
|
2022-12-03 22:02:35 -08:00
|
|
|
// override func scrollToEndOfDocument(_ sender: Any?) {
|
|
|
|
// if scrollEnabled {
|
|
|
|
// super.scrollToEndOfDocument(sender)
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// override func scroll(_ point: NSPoint) {
|
|
|
|
// if scrollEnabled {
|
|
|
|
// super.scroll(point)
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
2021-11-10 13:22:53 -08:00
|
|
|
}
|