Jump to content
Search Community

Krimo22

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Krimo22

  1. hi guys, 

    i need your help, it's been a couple days that i'm trying to solve this.

    i have a box wich contains SVGs that are draggable, that box needs its box-sizing to be "content-box", and the draggable SVGs bounds needs to be inside the box (not touching the borders) that's why i created a bounds-box which take 100% width and height of the parent box, and set the draggable bounds to that bounds-box, it works fine , the only problem is when i zoom in or out, the bounds change after dragging the svg around and u can see that the bounds got -1px on every side.

     

    thank you.

     

    See the Pen zYdXyzx by KrimoCamper (@KrimoCamper) on CodePen

×
×
  • Create New...