sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🚨 Skimp | 25% Off until March 30 Buy Now

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

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 2 Posters 288 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

        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

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement