Results 1 to 2 of 2

Thread: Unable to preventDefault inside passive event listener (Chrome)

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member ragzovskii's Avatar
    Join Date
    Sep 2012
    Krasnoyarsk, Russia

    Default Unable to preventDefault inside passive event listener (Chrome)

    In the latest 6.2.1 used on windows touch device (e.g. MS Surface) I notice, that dragdrop operation are not handled properly. To reproduce this, try to reorder columns with touch on buffer grid example. Open it in a relatively small window to see vertical scrollbar. Now there are two paths:
    1) Your first drag move is vertical - you can drag column horizontally but vertical scroll in changed when you drag up/down
    2) Your first drag move is horizontal - you will see that page itself is moving to the right (chrome back/forward page navigation) and page also can be scrolled vertically

    In the console you will see a ton of warnings referring us to the chrome feature description. And if we disable corresponding option in chrome flags: chrome://flags/#document-passive-event-listeners then dragdrop works just fine: no page scrolling or back navigation, no warning in console. Also it works much faster.

    As I understand, chrome devs suggest to add event listeners like this:
    Since we cannot tell every chrome user to disable this flag, would you consider adding all (touch) events listeners as active?

  2. #2
    Sencha Premium Member tjstuart's Avatar
    Join Date
    May 2007
    Sydney, Australia

Similar Threads

  1. Passive event listeners
    By christoph.piepka in forum Ext JS 6.x Q&A
    Replies: 7
    Last Post: 13 Feb 2018, 3:20 AM
  2. Replies: 1
    Last Post: 14 Oct 2014, 4:19 PM
  3. Add a PreventDefault to a listener tap event
    By simondavies in forum Sencha Touch 2.x: Q&A
    Replies: 7
    Last Post: 28 Dec 2012, 7:54 AM
  4. preventDefault() and stopEvent() don't work for input:image in Chrome
    By alicexyl in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 21 Jul 2011, 2:57 PM
  5. event.preventdefault
    By dolittle in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 7 Apr 2007, 9:31 AM

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