Author Topic: OnClick Conflict my DragCamera Component  (Read 3823 times)

liangyen

  • Guest
OnClick Conflict my DragCamera Component
« on: February 06, 2013, 04:57:20 AM »
HI,
i has a DragCamera Component, it use to pan camera

if i touch down in a button and Drag, and touch up in taht button

pan is work, and click work too

but i dont need to click

so i need to fix DragCamera, when i drag OnClick will not work

how to cancel click method

thanks


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: OnClick Conflict my DragCamera Component
« Reply #1 on: February 06, 2013, 11:46:37 AM »
Sorry, I have no idea what you're asking...

liangyen

  • Guest
Re: OnClick Conflict my DragCamera Component
« Reply #2 on: February 06, 2013, 09:28:29 PM »
i have a component, it can touch pan camera( touch down and touch move than camera move
i touch down in a button and touch move is work
but when i touch up is in button area, the button will click


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: OnClick Conflict my DragCamera Component
« Reply #3 on: February 06, 2013, 10:15:24 PM »
UICamera.currentTouch.pressed = null.