Sigma Php Ajax framework, Ajax Components, GUI Builder
May 23, 2012, 10:08:11 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to disable button click when dragging?  (Read 261 times)
Bruce_Dickey
Sr. Member
****
Posts: 67


View Profile
« on: October 04, 2011, 04:17:48 PM »

Hi,

If I click (and not release) on a "status" style (also called toggle) button and then drag off the button before releasing, it is decorated as if it was clicked.

How can this be prevented?

I don't want it to fire onClick in this situation either -- didn't check yet to see if it is....

Thanks,
Bruce

Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #1 on: October 04, 2011, 09:20:00 PM »

In you beforeMousedown event:

return false;
Logged
Bruce_Dickey
Sr. Member
****
Posts: 67


View Profile
« Reply #2 on: October 05, 2011, 08:51:00 AM »

Thanks

For the button, returning `false` in the `beforeClickEffect` handler works.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!