Author Topic: UIInput in ScrollView and dragging.  (Read 1259 times)

wallabie

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 200
    • View Profile
UIInput in ScrollView and dragging.
« on: June 12, 2014, 01:37:01 PM »
I have an item in a horizontal ScrollView that is essentially an UIinput.
On mobile, when I try to drag the item, the input keyboard immediately pops up and I cannot drag the item. 

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIInput in ScrollView and dragging.
« Reply #1 on: June 13, 2014, 04:02:01 AM »
UIInput begins input (and shows the keyboard) when the object gains selection and stops input (and closes the keyboard) when the object loses selection. It sounds like in your case you should instead keep UIInput script disabled, and enable it in some other script as a result of OnClick, followed by UIInput.isSelected = true.

wallabie

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 200
    • View Profile
Re: UIInput in ScrollView and dragging.
« Reply #2 on: June 14, 2014, 04:34:21 AM »
Thanks, this is the solution.