[TIMOB-806] Titanium.UI.Slider 'touchend' event is not fired
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:54:18.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | iOS |
Labels | performance, sliders, touchend |
Reporter | spierala |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:36:49.000+0000 |
Updated | 2011-04-17T01:54:18.000+0000 |
Description
Hello,
I tried it several times and even the most basic example is not working:
var slider = Titanium.UI.createSlider({
min:0,
max:10,
value:5,
width:100,
height:'auto',
top:30
});
slider.addEventListener('touchend', function(e){
alert("touchend");
});
win.add(slider);
Is it not yet implemented or just a bug?
I actually need this very urgently. Is there some kind of
workaround for this?
Many thanks,
Florian
Hoping this is addressed. Cheers! :-)
I'd like to mention that this feature would greatly improve performance for applications that dynamically update from these values.
Chroma uses a large number of calculations every time this value is changed. I've improved performance by only doing calculations at whole numbers.
Also, it would be much easier to implement "history" functionality if data is saved only after the user ends the touch.
Another vote for addressing this issue. My slider won't work as its supposed to without a proper touchend event being fired.
Assigning so it can get on the list.
Slider touchend event works only on the track by my test. In the meantime is there any way to add a touchend event to the button itself ( my_slider.sliderbtn.addEventListener...... ) or something like that.
In my case I feel it should fire change every time it moved but have a touchend event so you can act upon the final value.
Here goes yet another vote for fixing this aged bug in continuous builds.
@vit please don't change assignees.
This works on Android.
Awesome! Thanks!
(from [25f736bedcb6bb69d10924a6c030a6909ea47679]) [#806 state:fixed-in-qa] Added handling for certain control events on slider. http://github.com/appcelerator/titanium_mobile/commit/25f736bedcb6bb69d10924a6c030a6909ea47679"> http://github.com/appcelerator/titanium_mobile/commit/25f736bedcb6b...
The event is now firing on iOS, but its firing 2X. closing this and opening a bug #2095
Hi,
I found that "touchend" event for Titanium.UI.Slider object is still not fired in Android. My env is:
Titanium SDK 1.5.1
Titanum Developer 1.2.1
Android SDK 2.2
Even the slider_basic.js example in Kitchen Sink (the code commited here http://github.com/appcelerator/titanium_mobile/commit/25f736bedcb6bb69d10924a6c030a6909ea47679"> http://github.com/appcelerator/titanium_mobile/commit/25f736bedcb6b...) is capable to show the bug.