Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-10153

Android: Button: Touchend event not fired when touchmove gesture moves out of button

    Details

      Description

      The touchend event is not fired for button when touchmove moves outside the button

      This is not a regression. This occurs as far as 2.0.1

      Steps to Reproduce:
      1. Create an app with code below and launch the app
      2. Touch on the button and without ending the touch move finger outside the button

      Expected: The touchend event should fire when touch gesture ends, as in iOS

      Actual: touchend event is not fired and touchmove event for button continues to fire even after touchend outside the button

      var win = Ti.UI.createWindow();
      		var button = Ti.UI.createButton({
      			top:'10%',
      			bottom:'10%',
      			left:'10%',
      			right:'10%'
      			});
      		
      		button.addEventListener('touchmove',function(){
      			Ti.API.info('touchmove fired');
      			button.title = 'touchmove fired'
      		});
      		button.addEventListener('touchstart',function(){
      			Ti.API.info('touchstart fired');
      			button.title = 'touchstart fired'
      		});
      		button.addEventListener('touchend',function(){
      			Ti.API.info('touchend fired');
      			button.title = 'touchend fired'
      		});
      		
      		win.add(button);
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                krowley Karl Rowley
                Reporter:
                ssekhri Satyam Sekhri
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-5511
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code