# Touchstart Events aren't firing in Landscape Mode

**URL:** https://forum.kirupa.com/t/touchstart-events-arent-firing-in-landscape-mode/331416
**Category:** web dev
**Created:** [July 27, 2013, 2:47am UTC](https://forum.kirupa.com/t/touchstart-events-arent-firing-in-landscape-mode/331416 "2013-07-27T02:47:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![SoupHead](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@SoupHead](https://forum.kirupa.com/u/SoupHead)
#### Post date: [July 27, 2013, 2:47am UTC](https://forum.kirupa.com/t/touchstart-events-arent-firing-in-landscape-mode/331416/1 "2013-07-27T02:47:22Z")

</div>

On the little game I’m making, I just added 8 buttons (each for a different direction). In portrait mode the events work fine and the hero moves accordingly (Actually my code is buggy but that’s not important to this). When I orient the screen to landscape the buttons immediately stop working. This game is really made to be played in landscape and I’ve already gone onto reorienting the screen within the .xml files for Android. Even after setting the orientation to landscape the events still don’t seem to fire.

For each button I’m using code like the following (At least for now):

```auto
button.addEventListener('touchstart', handleButtonDown, false);
button.addEventListener('touchend' , handleButtonUp, false);

```

Again, this works fine in portrait but not at all in Landscape. Has this happened to anybody else? I ran a quick search through google and the forums but I’m not completely sure what I should be searching for.
