|
@@ -5,7 +5,6 @@
|
|
|
package control
|
|
package control
|
|
|
|
|
|
|
|
import (
|
|
import (
|
|
|
- "fmt"
|
|
|
|
|
"github.com/g3n/engine/camera"
|
|
"github.com/g3n/engine/camera"
|
|
|
"github.com/g3n/engine/math32"
|
|
"github.com/g3n/engine/math32"
|
|
|
"github.com/g3n/engine/util/logger"
|
|
"github.com/g3n/engine/util/logger"
|
|
@@ -332,8 +331,6 @@ func (oc *OrbitControl) updateZoom() {
|
|
|
// Called when mouse button event is received
|
|
// Called when mouse button event is received
|
|
|
func (oc *OrbitControl) onMouse(evname string, ev interface{}) {
|
|
func (oc *OrbitControl) onMouse(evname string, ev interface{}) {
|
|
|
|
|
|
|
|
- fmt.Printf("mev:%+v\n", ev.(*window.MouseEvent))
|
|
|
|
|
-
|
|
|
|
|
// If control not enabled ignore event
|
|
// If control not enabled ignore event
|
|
|
if !oc.Enabled {
|
|
if !oc.Enabled {
|
|
|
return
|
|
return
|