Results 1 to 2 of 2

Thread: JavaScript error during touch event on Ext.Map when using a windows tablet

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jul 2015
    Posts
    2

    Default JavaScript error during touch event on Ext.Map when using a windows tablet

    Hi,

    When using the Ext.Map component on a Windows tablet (Panasonic FZ-G1), a JavaScript error is thrown when a touch event occurs. The error appears to actually happen within the google maps code, however, the root cause seems to stem from the Sencha Touch code executed when the condition given by Ext.feature.has.Pointer is true (which it is for this Windows table).

    When I manually comment out the block in the createdFn function in Ext.event.publisher.TouchGesture that contains the following if-statement:
    Code:
     if (Ext.feature.has.Pointer) {
    The map seems to function somewhat correctly (not entirely correctly, but no JavaScript error occurs).

    There very well may be a reason for this execution branch that I'm not aware of, so does anyone have a workaround for this issue?

    If not, does anyone know how to override the Ext.feature.has.Pointer to be set to false? I have tried merely setting it to false at the launch function of the application, but by that time it seems that the core objects have already been instantiated.


    Just FYI, the actual JS error that occurs during a touch-event on the map is:
    Code:
    Object doesn't support property or method 'item'
    And it is likely related to the
    Code:
    changedTouches
    or
    Code:
    touches
    property of the touch event fired, which does not have a function called item, in this case (when normally it should).

    I am using Sencha Touch version 2.4.1 but the bug persists in 2.4.2 as well.


    Thanks in advance and please let me know if you need any more info!

    Anthony

  2. #2
    Sencha User
    Join Date
    Jul 2015
    Posts
    2

    Default

    FYI, I found a (possible) workaround..Before calling Ext.application(), I replace the test for Pointer support by executing:
    Code:
    Ext.feature.registerTest({Pointer: function() {return false;}});
    It's hacky but seems to do the job.

    Hopefully someone else can reply with a better solution or bug fix.

    Thanks,

    Anthony

Similar Threads

  1. [INFOREQ] error on drag and touch move events in Chrome on windows touch screen devices
    By jensen83 in forum Sencha Touch 2.x: Bugs
    Replies: 11
    Last Post: 25 Oct 2013, 4:00 AM
  2. Replies: 0
    Last Post: 7 Sep 2013, 11:10 PM
  3. Windows Surface Tablet support
    By scott.pettyjohn in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 7 Nov 2012, 1:01 PM

Tags for this Thread

Posting Permissions

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