Results 1 to 10 of 34

Thread: [OPEN-642] map on 1.0.1 not responding to click events on iPhone, Android

Hybrid View

Previous Post Previous Post   Next Post Next Post
    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1

    Default [OPEN-642] map on 1.0.1 not responding to click events on iPhone, Android

    in sencha touch 1.0 the map worked fine on iPhone for click events, which I do using

    var l = google.maps.event.addListener(worldMap.map, "click", function(event) { alert('foo');
    ...

    but in 1.0.1 the function is not being called. did something break it?

    click event doesn't trigger on: iPhone 3GS, T-mobile G2 Android 2.2
    click event triggers on: Chrome v8 on laptop

  2. #2
    Sencha Premium User mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    693

    Default

    did you tried the "tap" event instead? on mobile browsers you have no mouse which can fire a click event. But tap event will interpret as click on desktop browsers

  3. #3

    Default

    Thanks for the response mrsunshine. I just tried tap, and it doesn't work in any mobile browser and it doesn't work on the desktop either. I think this has to do to the google map event handlers -- I think there is only click and not tap

  4. #4
    Sencha Premium User mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    693

    Default

    you're right i add a listener to the markers in my application

    PHP Code:
    google.maps.event.addListener(
                
    marker,
                
    'click',
                function() {
                    
    infoWindow.open(mapmarker);
                }
            ); 
    works for the marker

Similar Threads

  1. Android and click events on map
    By xnakxx in forum Sencha Touch 1.x: Discussion
    Replies: 12
    Last Post: 29 Aug 2011, 8:12 AM
  2. Replies: 4
    Last Post: 3 Dec 2010, 5:43 AM
  3. Default Android and iPhone click/tap styles?
    By djkraz in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 21 Sep 2010, 6:47 AM
  4. Click events and href in Android
    By wprater in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 17 Sep 2010, 9:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •