[vtkusers] Disable "mouse wheel" on VTK-Web

Sebastien Jourdain sebastien.jourdain at kitware.com
Wed Aug 10 11:18:38 EDT 2016


The edit will need to happen on the client.

With jQuery you will need to unbind those events on the mouse listener
container like follow:

$('.mouse-listener').unbind("DOMMouseScroll mousewheel");

You can add that line within the <script> tag after the viewport has been
created and bind to a DOM element.

On Tue, Aug 9, 2016 at 9:37 PM, 沈庄明 <zhuangming.shen at sphic.org.cn> wrote:

> ​Hi all,
>
>
> I'd like to disable "mouse wheel forward" and "mouse wheel backward" on
> VTK-Web. How can I modify vtk_web_cone.py? Need to modify corresponding .js
> file? Any suggestions are welcomed. Thanks.
>
>
>
> Regards,
>
>
> Zhuangming Shen
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160810/f8243a17/attachment.html>


More information about the vtkusers mailing list