Skip to main content
Mr. Berticus
Associate II
March 31, 2022
Question

How do I implement the snapper mix-in? I'm trying to create a 3 position slide switch and I'm having trouble getting it to "snap" to either position 1, 2, or 3. Is the snapper the correct mix-in to use here or am I off base?

  • March 31, 2022
  • 1 reply
  • 669 views

..

This topic has been closed for replies.

1 reply

Osman SOYKURT
Technical Moderator
April 6, 2022

Hello Mr. Berticus,

TouchGFX Designer does not support the snapper mixin, yet. But you can create your 3 position slide switch using the draggable mixin, for example with a box that can be draggable, and based on it position x, y you can implement the switch through code.

Or even easier, you can use the scroll list or scroll wheel with 3 elements on it.

/Osman

Osman SOYKURTST Software Developer | TouchGFX