Closed kai2703 closed 3 weeks ago
Modal behavior creates a cover to block all touch inputs, therefore it also blocks canvasInput's clickOutSide detecting, will try to find another way to solve this bug.
BTW, since touchOutsideClose
is true
, means that clicking outside of dialog will close modal dialog, it will also close canvasInput too.
I have a form inside the modal, I want to blur the input which will trigger the virtual keyboard to close on mobile. BTW, your lib helps me a lot when I get started with phaser, thank you
I had added a new parameter clickOutSideTarget
, see this test case, line 57.
Turn on/off it to test the blur behavior. Turn on this parameter will create a game object for clickOutSide detecting, below CanvasInput, but above cover of modal, therefore CanvasInput can receive blur.
Note that touchOutsideClose
parameter (line 67) is disabled here.
thank you, it worked
How to trigger onCursorOut inside a modal with a cover