<div dir="ltr">vtk.js interaction does not currently implement zooming. So the current behavior is expected.<div><br></div><div>What are you trying to do with vtk.js and salome? vtk.js has not been released yet and is a pure JavaScript/client library.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 17, 2016 at 3:18 PM, Daniel Zuidinga <span dir="ltr"><<a href="mailto:info@seoaachen.de" target="_blank">info@seoaachen.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    shouldn't work scroll wheel in vtk.js? e.g. here
    <a href="https://kitware.github.io/vtk-js/examples/HttpSceneLoader.html" target="_blank">https://kitware.github.io/vtk-<wbr>js/examples/HttpSceneLoader.<wbr>html</a><br>
    I have to compile the whole sources? I use pv of salome meca. I hope
    it isn't to complicated and cpu intensive.<div><div class="h5"><br>
    <br>
    <div>Am 17.08.2016 um 22:32 schrieb
      Sebastien Jourdain:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">I guess ParaView is missing more code on the server
        side. ;-)
        <div>This time, it will be in the C++.
          <div><br>
          </div>
          <div><br>
          </div>
          <div>${ParaView-src}/VTK/Web/Core/<wbr>vtkWebApplication.cxx =>
            vtkPVWebApplication::<wbr>HandleInteractionEvent</div>
          <div><br>
          </div>
          <div>vs</div>
          <div><br>
          </div>
          <div>${ParaView-src}/Web/Core/<wbr>vtkPVWebApplication.cxx =>
            vtkWebApplication::<wbr>HandleInteractionEvent<br>
          </div>
          <div><br>
          </div>
          <div>The VTK one has:</div>
          <div><br>
          </div>
          <div>
            <div>  // Handle scroll action if any</div>
            <div>  if(event->GetScroll()) {</div>
            <div>    iren->SetEventInformation(0, 0, ctrlKey,
              shiftKey, event->GetKeyCode(), 0);</div>
            <div>    iren->MouseMoveEvent();</div>
            <div>    iren->RightButtonPressEvent();</div>
            <div>    iren->SetEventInformation(0,
              event->GetScroll()*10, ctrlKey, shiftKey,
              event->GetKeyCode(), 0);</div>
            <div>    iren->MouseMoveEvent();</div>
            <div>    iren->RightButtonReleaseEvent(<wbr>);</div>
            <div>    this->Internals->ImageCache[<wbr>view].NeedsRender
              = true;</div>
            <div>    return true;</div>
            <div>  }</div>
          </div>
          <div><br>
          </div>
          <div>If you got it working, could you submit a pull request on
            our gitlab and assign it to me so those fix could be part of
            PV 5.2?</div>
        </div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div><br>
        </div>
        <div>Seb</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Aug 17, 2016 at 2:08 PM, Daniel
          Zuidinga <span dir="ltr"><<a href="mailto:info@seoaachen.de" target="_blank">info@seoaachen.de</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I added
            the lines but scroll wheel does not work
            <div>
              <div><br>
                <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <br>
                  Look at ${pv_src}/Web/Python/paraview/<wbr>web/protocols.py 
                  #ParaViewWebMouseHandler<br>
                  vs ${pv_src}/VTK/Web/Python/vtk/w<wbr>eb/protocols.py 
                   #vtkWebMouseHandler<br>
                  <br>
                  it seems the paraview one is missing:<br>
                  <br>
                        if event.has_key("scroll"):<br>
                              pvevent.SetScroll(event["scrol<wbr>l"])<br>
                  <br>
                  Just add it to your paraview python file.<br>
                  <br>
                </blockquote>
                <br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div>