Results 1 to 3 of 3

Thread: Disable mouse events for view

  1. #1
    Sencha Premium User
    Join Date
    Sep 2008
    Posts
    147
    Answers
    4

    Default Disable mouse events for view

    How can I disable specific mouse events for a view?

    I have an extjs view, which incorporates an external component, which generates a canvas and does some actions with it.
    I noticed some lags and the lags seems to be cause by mouse_move, move over event propagation in the extjs framework.

    Now, for this use-case these events are "obsolete", so I would like to disable them. How can I do that?

    Screenshot_408.jpg
    Attached Images Attached Images
    Management means doing the things right,
    Leadership means doing the right things.
    www.interpid.eu

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,006
    Answers
    5

    Default

    Hi there- this has been passed on to the support team and someone will get back to you on how to accomplish this. We appreciate your patience.

    Thanks,

    Michele

  3. #3
    Sencha Premium Member s.roux's Avatar
    Join Date
    Dec 2014
    Location
    Mulhouse, France
    Posts
    16
    Answers
    4

    Default

    Code:
    yourComponent.getEl().addEventListener('eventname', function (event) {
        event.stopPropagation();
    }, false);
    It should stop the event at DOM level and prevent propagation in ExtJS.

    If these events are available for your ExtJS component (you can see it in the component documentation), you can also use :

    Code:
    yourComponent.suspendEvent('eventname')

Posting Permissions

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