|
@@ -203,7 +203,6 @@ func (w *Window) onCursor(evname string, ev interface{}) {
|
|
|
// Check if cursor is on the top of the window (border + drag margin)
|
|
// Check if cursor is on the top of the window (border + drag margin)
|
|
|
if cy <= w.borderSizes.Top {
|
|
if cy <= w.borderSizes.Top {
|
|
|
w.overTop = true
|
|
w.overTop = true
|
|
|
- window.Get().SetCursor(window.VResizeCursor)
|
|
|
|
|
} else {
|
|
} else {
|
|
|
w.overTop = false
|
|
w.overTop = false
|
|
|
}
|
|
}
|
|
@@ -216,14 +215,12 @@ func (w *Window) onCursor(evname string, ev interface{}) {
|
|
|
// Check if cursor is on the left of the window (border + drag margin)
|
|
// Check if cursor is on the left of the window (border + drag margin)
|
|
|
if cx <= w.borderSizes.Left+w.dragPadding {
|
|
if cx <= w.borderSizes.Left+w.dragPadding {
|
|
|
w.overLeft = true
|
|
w.overLeft = true
|
|
|
- window.Get().SetCursor(window.HResizeCursor)
|
|
|
|
|
} else {
|
|
} else {
|
|
|
w.overLeft = false
|
|
w.overLeft = false
|
|
|
}
|
|
}
|
|
|
// Check if cursor is on the right of the window (border + drag margin)
|
|
// Check if cursor is on the right of the window (border + drag margin)
|
|
|
if cx >= w.width-w.borderSizes.Right-w.dragPadding {
|
|
if cx >= w.width-w.borderSizes.Right-w.dragPadding {
|
|
|
w.overRight = true
|
|
w.overRight = true
|
|
|
- window.Get().SetCursor(window.HResizeCursor)
|
|
|
|
|
} else {
|
|
} else {
|
|
|
w.overRight = false
|
|
w.overRight = false
|
|
|
}
|
|
}
|