Hi!
I’m running 4.0.0 beta1
And using an action manager to handle a hover effect and to toggle som functionality.
This works great when i have a mouse, but it doesn’t seem to work at all in iOS safari.
const actionManager = new ActionManager(this.scene)
actionManager.registerAction(
new ExecuteCodeAction({ trigger: ActionManager.OnPointerOverTrigger }, (event: ActionEvent) => {
const mesh = event.meshUnderPointer
mesh.scaling.scaleInPlace(1.1)
console.log('over')
}),
)
actionManager.registerAction(
new ExecuteCodeAction({ trigger: ActionManager.OnPointerOutTrigger }, (event: ActionEvent) => {
const mesh = event.meshUnderPointer
mesh.scaling.scaleInPlace(1.0 / 1.1)
console.log('out')
}),
)
actionManager.registerAction(
new ExecuteCodeAction({ trigger: ActionManager.OnPickTrigger }, (event: ActionEvent) => {
const mesh = event.meshUnderPointer
const view = mesh.metadata as View
this.viewService.open(view.id)
console.log('pick', view)
}),
)
I’m using pepjs, and the camera controls work as expected, so it must a bug or something that is wrong with the raytracing.
I tried this demo on my iPad and it doesn’t work either.
https://www.babylonjs-playground.com/#9RUHH#5
