Template Repeater – Touch Screen Drag Scrolling Support?

Hi Ignition Community,

I’ve searched through the forum but haven’t found much discussion regarding this specific behavior, so I’d like to start a new topic to get some input.

I’m currently using a Template Repeater, and I’ve noticed that it does not respond to touch screen drag gestures (i.e., press-and-drag / click-and-drag scrolling). Scrolling appears to rely solely on the scroll bar.

My goal is to allow users to scroll the Template Repeater content by pressing and dragging directly on the component, similar to how scrolling works on a touchscreen device.

Interestingly, I noticed that in a Power Table, holding the mouse near the top or bottom edge will automatically scroll the table up or down. I’m not sure whether this behavior is relevant or can be applied to a Template Repeater, but I thought it might be worth mentioning.

Is there a way to implement mouse hold-and-drag scrolling for a Template Repeater, possibly through scripting or event handling, without relying only on the scroll bar?

Any suggestions or best practices would be greatly appreciated.

Thank you!

Yes, using standard JScrollPane techniques with the appropriate drag listeners. However, there is a catch: any component in your templates that consumes mouse events will consume the drag events and they will never reach your outer listeners.

You may need to resend mouse events from those template components to support this. There are a number of forum posts that have examples. Perhaps this one inspires you: