+1
Beantwoord
Is there any way possible to have the panel swipe with the finger when calling onswipeleft?
I was hoping to be able to move the panel like the movement of the finger swiping to give the panel an appearance of movement.
Customer support service by UserEcho
Or for a more defined movement, you can use the translate action when the onswipeleft is invoked and move the panel to a specific pixel value on the screen.
You might also consider looking at the object properties for RWtouched. This way you can assign the translate to move exactly where you finger is.
<!--SAMPLE WIRE for using _RW-touchedx and _RW-touchedy-->
<wire>
<main>
<panel name="1" width="100%" height="100%" background="ff0000" onclickup="show"></panel>
</main>
<actions>
<action name="show">
<alert message="_RW-touchedx, _RW-touchedy"/>
</action>
</actions>
</wire>
ex.
<translate xpos="-100%" time="2" curve="linear" target="PANEL" />