Description
touchstart and touchend dont fire on a button
var _window = Ti.UI.createWindow();
var button = Ti.UI.createButton({
top: '10%',
bottom: '10%',
left: '10%',
right: '10%',
backgroundColor: 'black'
});
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'
});
_window.add(button);
_window.open()
Steps to reproduce
Add the code above to an app.js and build for Windows
Click the button
Actual
No touchstart or touchend events
Expected
Should see touchstart and touchend
These events are [disabled explicitly](https://github.com/appcelerator/titanium_mobile_windows/blob/master/Source/UI/src/Button.cpp#L129) on
Button
actually. I saw a inconsistency on its pointer event handling (such as,touchstart
is fired but notouchend
fired etc) so I decided to remove the support for it. I would resolve this as "Won't Fix".Closing old "Won't fix" tickets. If you disagree, please reopen.