Page 4 of 4 FirstFirst ... 234
Results 31 to 34 of 34

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

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

    Default Thanks!

    Thanks, Jacky; your workaround worked for me.

    Any word on this being fixed in future versions?

  2. #32
    Sencha User Jacky Nguyen's Avatar
    Join Date
    Jul 2009
    Location
    Palo Alto, California
    Posts
    469

    Default

    This is no longer an issue in Touch 2.x
    Sencha Touch Lead Architect

  3. #33

    Default problem with overlay

    Guys i tried mousedown and it did fire the event, but i wanted to create a pop up as an overlay containing some info, the point is , with mousedown it doesn't work , with click it works on pc only not on iphone or android
    any clue ?
    thanks

  4. #34
    Sencha User
    Join Date
    Apr 2011
    Posts
    212

    Default

    Jacky's fix earlier in this post worked fine for me.

    Code:
    // Sencha 1 fix for map click events
    Ext.gesture.Manager.onMouseEventOld = Ext.gesture.Manager.onMouseEvent;
    Ext.gesture.Manager.onMouseEvent = function(e) {
    	var target = e.target;
    
    
    	while (target) {
    		if (Ext.fly(target) && Ext.fly(target).hasCls('x-map')) {
    			return;
    		}
    
    
    		target = target.parentNode;
    	}
    
    
    	this.onMouseEventOld.apply(this, arguments);
    };
    Code:
            // Handle map touch events
            google.maps.event.addListener(map, 'click', function(event) {
            ...
            });

Page 4 of 4 FirstFirst ... 234

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
  •