mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-29 16:56:40 +03:00
GH-374 Modify hitTest such that it takes the selected tool into account
This commit is contained in:
parent
2bedf03e91
commit
fdf67b6fc7
@ -383,6 +383,11 @@ extension WorkspaceBar {
|
|||||||
|
|
||||||
override func hitTest(_ point: NSPoint) -> NSView? {
|
override func hitTest(_ point: NSPoint) -> NSView? {
|
||||||
let loc = self.convert(point, from: nil)
|
let loc = self.convert(point, from: nil)
|
||||||
|
|
||||||
|
guard self.isOpen else {
|
||||||
|
return super.hitTest(point)
|
||||||
|
}
|
||||||
|
|
||||||
if self.resizeRect().contains(loc) {
|
if self.resizeRect().contains(loc) {
|
||||||
return self
|
return self
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user