Debugging

Home Forums Programming Debugging

This topic contains 5 replies, has 3 voices, and was last updated by Avatar mugga 1 month, 1 week ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #17799
    Avatar
    loom
    Licensee

    Hi,

    do we care about this error in chrome console ?

    v3d.js:1 [Violation] Added non-passive event listener to a scroll-blocking ‘wheel’ event. Consider marking event handler as ‘passive’ to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

    just wondering if we could ignore it ?

    Cheers,
    Chris

    #17804
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    Hi,

    Can this error be seen in some of Verge3D demos as well?

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #17806
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    I see them now – you must have enabled Verbose level in Chrome console. Nevertheless, I think it is worth looking deeper into those warnings. Thanks for heads up!

    Attachments:
    You must be logged in to view attached files.

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #19958
    Avatar
    mugga
    Newbie

    I also got this warnings in chrome and the wheel event doesnt work for me. Is there a workaround?

    Update:
    It is working but not when scrolling/zooming in webgl. How can I fire and event when zooming? The “each frame” function is producing to much overhead for me, I would like to execute some functions when zooming.

    • This reply was modified 1 month, 1 week ago by Avatar mugga.
    • This reply was modified 1 month, 1 week ago by Avatar mugga.
    #19967
    Yuri Kovelenov
    Yuri Kovelenov
    Developer

    The “each frame” function is producing to much overhead for me

    you can possibly only check the distance to the camera every frame, and perform other operations only if the distance changed

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #19972
    Avatar
    mugga
    Newbie

    Ah okay, yeah this should work.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.