Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-806] Titanium.UI.Slider 'touchend' event is not fired

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:18.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labelsperformance, sliders, touchend
Reporterspierala
AssigneeReggie Seagraves
Created2011-04-15T02:36:49.000+0000
Updated2011-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

Comments

  1. Fred Spencer 2011-04-15

    Hoping this is addressed. Cheers! :-)

  2. Fred Spencer 2011-04-15

    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.

  3. Justin Johnson 2011-04-15

    Another vote for addressing this issue. My slider won't work as its supposed to without a proper touchend event being fired.

  4. ctredway 2011-04-15

    Assigning so it can get on the list.

  5. jbermudez 2011-04-15

    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.

  6. vit 2011-04-15

    Here goes yet another vote for fixing this aged bug in continuous builds.

  7. Don Thorp 2011-04-15

    @vit please don't change assignees.

    This works on Android.

  8. vit 2011-04-15

    Awesome! Thanks!

  9. Jeff Haynie 2011-04-15

    (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...

  10. Thomas Huelbert 2011-04-15

    The event is now firing on iOS, but its firing 2X. closing this and opening a bug #2095

  11. Gennaro Vietri 2011-04-15

    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.

JSON Source