Q qsrtech Active Member Licensed User Longtime User May 25, 2015 #1 Not sure if this is by apple design but it is definitely not good if it was. The issue is if I "drag" the switch then it fires multiple valuechanged events (with the same value). If there's a way, please make it only fire if the value is actually different. thanks
Not sure if this is by apple design but it is definitely not good if it was. The issue is if I "drag" the switch then it fires multiple valuechanged events (with the same value). If there's a way, please make it only fire if the value is actually different. thanks
Erel B4X founder Staff member Licensed User Longtime User May 25, 2015 #2 Seems like a bug in iOS: http://stackoverflow.com/questions/...nged-calling-continuously-is-this-bug-or-what
Seems like a bug in iOS: http://stackoverflow.com/questions/...nged-calling-continuously-is-this-bug-or-what
Q qsrtech Active Member Licensed User Longtime User May 25, 2015 #3 Since you're probably wrapping it, is there any way for you to track it at the class level and only forward the event when it's actually chsnged?
Since you're probably wrapping it, is there any way for you to track it at the class level and only forward the event when it's actually chsnged?
narek adonts Well-Known Member Licensed User Longtime User May 25, 2015 #4 I think the best solution if it is a bug is to track the TOUCH UP event to have the final value
Q qsrtech Active Member Licensed User Longtime User May 25, 2015 #5 It might be a solution but i'm not sure i'd say it's the best solution. How are we supposed to know this solution unless maybe some help is provided in the IDE informing us of a possible bug and work around. The best solution is to have the event fire as designed, I wasted a lot of debugging time because of it.
It might be a solution but i'm not sure i'd say it's the best solution. How are we supposed to know this solution unless maybe some help is provided in the IDE informing us of a possible bug and work around. The best solution is to have the event fire as designed, I wasted a lot of debugging time because of it.