StablexUI
StablexUI copied to clipboard
Modified listener in order to avoid CHANGE event to be fired twice when "sliding"
Removed listener on MOUSE_UP event for the Switch main box when "sliding" because it will be detected twice (once on slider , once on switch) and the change event will be fired twice (before changing the switch state ad after). For instance, this coud be an issue if checking the selected state of the switch on-change