<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I figured out my problem. Basically, the API has an expected chain
    of mouse interaction requests:<br>
    <br>
    When zooming:<br>
    1 - (fired when ctrl+right-mouse is pressed) <br>
        <i>action</i>: down<br>
        <i>states</i>: buttonRight and ctrlKey should be true<br>
        <i>y</i>: should be the current, normalized zoom (something
    between 0 and 1)<br>
    2 - (fired when mouse moves along y-axis)<br>
        <i>action</i>: move<br>
        <i>states</i>: buttonRight and ctrlKey should be true<br>
        <i>y</i>: should be the current, normalized zoom based on the
    change in y<br>
    3 - (fired when scrolling stops)<br>
        <i>action</i>: up<br>
        <i>states</i>: buttonRight and ctrlKey should be false this
    time<br>
        <i>y</i>: should be the current, normalized zoom<br>
    <br>
    When rotating:<br>
    1 - (fired when left-mouse is pressed)<br>
        <i>action</i>: down<br>
        <i>states</i>: buttonLeft is true<br>
        <i>x,y</i>: should be the current cursor location, normalized<br>
    2 - (fired when mouse moves)<br>
        <i>action</i>: move<br>
        <i>states</i>: buttonLeft is true<br>
        <i>x,y</i>: should be the current cursor location, normalized<br>
    3 - (fired when left-mouse is released)<br>
        <i>action</i>: up<br>
        <i>states</i>: buttonLeft should be false this time<br>
        <i>x,y</i>: should be the current cursor location, normalized<br>
    <br>
    As long as those requests take place in the right order, everything
    works as expected. Thanks for the clues, guys.<br>
    <br>
    Jordan<br>
    <pre class="moz-signature" cols="72">Jordan Deyton
Oak Ridge National Laboratory
Telephone: (865) 574-1091
Email: <a class="moz-txt-link-abbreviated" href="mailto:deytonjh@ornl.gov">deytonjh@ornl.gov</a></pre>
    <div class="moz-cite-prefix">On 7/2/2015 1:03 PM, Deyton, Jordan H.
      wrote:<br>
    </div>
    <blockquote cite="mid:1435856629989.63440@ornl.gov" type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
      <p>I wasn't really sure what to use for the action. </p>
      <p><br>
      </p>
      <p>(I will double check that I'm sending the full request with all
        parameters.) I'll try using "move" instead of "none". I'll also
        try programmatically sending a very small mouse movement with
        the left click, and report back if I can find anything out.<br>
      </p>
      <p><br>
      </p>
      <p>Thanks!<br>
      </p>
      <p>Jordan<br>
      </p>
      <p><br>
      </p>
      <div style="color: rgb(33, 33, 33);">
        <hr tabindex="-1" style="display:inline-block; width:98%">
        <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
            color="#000000" face="Calibri, sans-serif"><b>From:</b>
            Sebastien Jourdain <a class="moz-txt-link-rfc2396E" href="mailto:sebastien.jourdain@kitware.com"><sebastien.jourdain@kitware.com></a><br>
            <b>Sent:</b> Wednesday, July 01, 2015 7:09 PM<br>
            <b>To:</b> Scott Wittenburg<br>
            <b>Cc:</b> Deyton, Jordan H.; <a class="moz-txt-link-abbreviated" href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
            <b>Subject:</b> Re: [Paraview] Zooming through the
            ParaViewWeb API</font>
          <div> </div>
        </div>
        <div>
          <div dir="ltr">Scott is right, the x,y values are normalized,
            so depending on your screen size if your image is 1000 pixel
            wide and you want to reflect a move of 10 pixel, you should
            send a x of 10/1000=0.01.</div>
          <div class="gmail_extra"><br>
            <div class="gmail_quote">On Wed, Jul 1, 2015 at 4:28 PM,
              Scott Wittenburg <span dir="ltr">
                <<a moz-do-not-send="true"
                  href="mailto:scott.wittenburg@kitware.com"
                  target="_blank">scott.wittenburg@kitware.com</a>></span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;
                border-left:1px #ccc solid; padding-left:1ex">
                <div dir="ltr">
                  <div>Here is a sample from my websocket frames just
                    now:</div>
                  <div><br>
                  </div>
[48,4996973606207488,{},"viewport.mouse.interaction",[{"view":353,"action":"move","altKey":false,"ctrlKey":false,"shiftKey":false,"metaKey":false,"buttonLeft":false,"buttonMiddle":false,"buttonRight":true,"x":0.7654596100278551,"y":0.38173817381738173}]]
                  <div><br>
                  </div>
                  <div>It seems the "action" should be set to "move"
                    rather than "none", as in the documentation you
                    linked, "none" does not seem to be an option.  Also,
                    as that documentation states, x and y should be
                    normalized to [0, 1], as you correctly guessed.  And
                    finally, you may need to provide all the parameters
                    with values like I show above, not just the ones you
                    are interested in.</div>
                  <div><br>
                  </div>
                  <div>But at any rate, this should not then affect the
                    center of rotation, but it sounds like in your case
                    maybe it is?  Can you see if moving just a *tiny*
                    bit keeps at least some of the object in view?</div>
                  <div><br>
                  </div>
                  <div>Cheers,</div>
                  <div>Scott
                    <div>
                      <div class="h5"><br>
                        <div class="gmail_extra"><br>
                          <div class="gmail_quote">On Wed, Jul 1, 2015
                            at 4:12 PM, Jordan Deyton <span dir="ltr">
                              <<a moz-do-not-send="true"
                                href="mailto:deytonjh@ornl.gov"
                                target="_blank">deytonjh@ornl.gov</a>></span>
                            wrote:<br>
                            <blockquote class="gmail_quote"
                              style="margin:0 0 0 .8ex; border-left:1px
                              #ccc solid; padding-left:1ex">
                              ParaViewWeb gurus,<br>
                              <br>
                              Is there a correct way to send a zoom
                              request through the ParaViewWeb API?<br>
                              <br>
                              I'm especially looking at the PVW
                              MouseHandler (documentation here -- <a
                                moz-do-not-send="true"
href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#%21/api/protocols.ParaViewWebMouseHandler"
                                rel="noreferrer" target="_blank">
http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/api/protocols.ParaViewWebMouseHandler</a>)<br>
                              <br>
                              I have had some success by sending a
                              right-click with a small y value (looks
                              like it needs to be between 0 and 1), the
                              action set to "none", and buttonRight set
                              to "true". However, when I afterward
                              rotate the view (using the same RPC call
                              with different methods), the rendered
                              object just vanishes, although the axes
                              and legend are still there.<br>
                              <br>
                              Jordan<br>
                              <br>
                              -- <br>
                              Jordan Deyton<br>
                              Oak Ridge National Laboratory<br>
                              Telephone: <a moz-do-not-send="true"
                                href="tel:%28865%29%20574-1091"
                                value="+18655741091" target="_blank">
                                (865) 574-1091</a><br>
                              Email: <a moz-do-not-send="true"
                                href="mailto:deytonjh@ornl.gov"
                                target="_blank">deytonjh@ornl.gov</a><br>
                              <br>
_______________________________________________<br>
                              Powered by <a moz-do-not-send="true"
                                href="http://www.kitware.com"
                                rel="noreferrer" target="_blank">www.kitware.com</a><br>
                              <br>
                              Visit other Kitware open-source projects
                              at <a moz-do-not-send="true"
                                href="http://www.kitware.com/opensource/opensource.html"
                                rel="noreferrer" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
                              <br>
                              Please keep messages on-topic and check
                              the ParaView Wiki at: <a
                                moz-do-not-send="true"
                                href="http://paraview.org/Wiki/ParaView"
                                rel="noreferrer" target="_blank">
                                http://paraview.org/Wiki/ParaView</a><br>
                              <br>
                              Search the list archives at: <a
                                moz-do-not-send="true"
                                href="http://markmail.org/search/?q=ParaView"
                                rel="noreferrer" target="_blank">
                                http://markmail.org/search/?q=ParaView</a><br>
                              <br>
                              Follow this link to subscribe/unsubscribe:<br>
                              <a moz-do-not-send="true"
                                href="http://public.kitware.com/mailman/listinfo/paraview"
                                rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
                            </blockquote>
                          </div>
                          <br>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <br>
                _______________________________________________<br>
                Powered by <a moz-do-not-send="true"
                  href="http://www.kitware.com" rel="noreferrer"
                  target="_blank">www.kitware.com</a><br>
                <br>
                Visit other Kitware open-source projects at <a
                  moz-do-not-send="true"
                  href="http://www.kitware.com/opensource/opensource.html"
                  rel="noreferrer" target="_blank">
                  http://www.kitware.com/opensource/opensource.html</a><br>
                <br>
                Please keep messages on-topic and check the ParaView
                Wiki at: <a moz-do-not-send="true"
                  href="http://paraview.org/Wiki/ParaView"
                  rel="noreferrer" target="_blank">
                  http://paraview.org/Wiki/ParaView</a><br>
                <br>
                Search the list archives at: <a moz-do-not-send="true"
                  href="http://markmail.org/search/?q=ParaView"
                  rel="noreferrer" target="_blank">
                  http://markmail.org/search/?q=ParaView</a><br>
                <br>
                Follow this link to subscribe/unsubscribe:<br>
                <a moz-do-not-send="true"
                  href="http://public.kitware.com/mailman/listinfo/paraview"
                  rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
                <br>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the ParaView Wiki at: <a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>

Search the list archives at: <a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=ParaView">http://markmail.org/search/?q=ParaView</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>