Hi,
Where can I set this condition in the node editor?
if (window.matchMedia(‘(hover: hover) and (pointer: fine)’).matches)
Cheers
Sebastian
Hi,
Where can I set this condition in the node editor?
if (window.matchMedia(‘(hover: hover) and (pointer: fine)’).matches)
Cheers
Sebastian
This will be very easy to do with the next update.
We have added a feature that allows you to parse custom JavaScript using double brackets. This means you can actually add any rule you like as a condition.
To keep things clean, you can bind the relevant condition to a variable and then simply work with that variable from that point on.
Example: