Ver código fonte

Remove duplicate calls to SetCursor

Daniel Salvadori 6 anos atrás
pai
commit
101beddb9c
1 arquivos alterados com 0 adições e 3 exclusões
  1. 0 3
      gui/window.go

+ 0 - 3
gui/window.go

@@ -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)
 			if cy <= w.borderSizes.Top {
 				w.overTop = true
-				window.Get().SetCursor(window.VResizeCursor)
 			} else {
 				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)
 			if cx <= w.borderSizes.Left+w.dragPadding {
 				w.overLeft = true
-				window.Get().SetCursor(window.HResizeCursor)
 			} else {
 				w.overLeft = false
 			}
 			// Check if cursor is on the right of the window (border + drag margin)
 			if cx >= w.width-w.borderSizes.Right-w.dragPadding {
 				w.overRight = true
-				window.Get().SetCursor(window.HResizeCursor)
 			} else {
 				w.overRight = false
 			}