sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Bug?] Pan "on border": Is this a known bug ?

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 2 Posters 222 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      MarcioAB
      last edited by MarcioAB

      Please, see below if this is a known bug. Is there any way to prevent this (using API) ?

      Thank you
      Marcio

      Scenario

      1. Create a simple plugin (Tool) with the code below
      2. Activate the Tool ("t1" on Ruby Console)
      3. Drag the mouse with LButton down
      4. Keep moving the mouse towards the window frame borders
      5. The view will remain the same (as expected) but ...

      When the mouse is over the frame border (still with LButton down) the view will start to PAN. PAN down if the mouse is over top border, PAN right if mouse on left border and so on.

      class ToolTest

      nothing, empty

      end
      def t1
      Sketchup.active_model.select_tool(ToolTest.new)
      end

      1 Reply Last reply Reply Quote 0
      • R Offline
        RickW
        last edited by

        As far as I know, that is the intended behavior, consistent with how the native tools work.

        RickW
        [www.smustard.com](http://www.smustard.com)

        1 Reply Last reply Reply Quote 0
        • M Offline
          MarcioAB
          last edited by

          Well, I wonder why this SketchUP behavior ( starts to PAN when the mouse gets over the window frame border ) for API tools is normal. It's like as Orbit+Shift became active. What is the logic behind that ?

          Thank you
          Marcio

          1 Reply Last reply Reply Quote 0
          • R Offline
            RickW
            last edited by

            I think it was intended to avoid having to switch to Pan mode while drawing things.

            RickW
            [www.smustard.com](http://www.smustard.com)

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement