Hi, Iām the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
To address the issue of the context menu appearing when a button is pressed and held in your Chromium-based UI, you can modify the behavior of Chromium to disable this feature. A practical approach is to use JavaScript to prevent the default context menu from appearing. You can add the following script to your web page:
<script>
document.addEventListener('contextmenu', event => event.preventDefault());
</script>
This script listens for the contextmenu
event and prevents it from triggering, effectively disabling the right-click context menu.
Additionally, ensure that your Chromium container is running in kiosk mode, which can help restrict unwanted interactions. You can set the Chromium container to kiosk mode by adding the --kiosk
flag in your Docker Compose file or when launching the container.
Regarding your Weston configuration, it seems you have already attempted to adjust settings in the weston.ini
file. The primary solution for the context menu issue lies within the web application itself, as described above.
By implementing these changes, you should be able to hold buttons on your UI without triggering the context menu, allowing for the desired motor control functionality.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem:
Chromium container cannot render 3D content on Verdin iMX8M-Mini.