I can drag click responses across the screen

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
maxvsthegames
Posts: 20
Joined: Sun Apr 04, 2021 11:54 am

I can drag click responses across the screen

Post by maxvsthegames »

Hi,

There's a strange issue with the responses menu. I seem to be able to click on a response and then drag it around the screen. I didn't modify anything code-wise, so I'm not sure why this is happening.

It also causes another issue. When you drag click an option, it gets highlighted as if you were hovering over it. If you then hover over the another response, both are shown highlighted.

Here's a gif showing the issue:
Image

Is this a known issue? Any way to fix this?
Thanks.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: I can drag click responses across the screen

Post by Tony Li »

Hi,

That's standard Unity UI ScrollRect behavior. It's not specific to the Dialogue System. You can get rid of it in two ways:

1. Remove the ScrollRect. You can also remove the Scrollbar in this case because the menu won't be scrollable. So make sure you leave enough vertical space for the maximum number of response buttons you intend to show.

2. Or change the ScrollRect's Movement Type to Clamped.
maxvsthegames
Posts: 20
Joined: Sun Apr 04, 2021 11:54 am

Re: I can drag click responses across the screen

Post by maxvsthegames »

Thanks!
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: I can drag click responses across the screen

Post by Tony Li »

Glad to help!
Post Reply