Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ivelin

Pages: [1]
1
Graphics / Drag & drop
« on: January 31, 2021, 07:44:26 am »
I want to make drag and drop objects, draggable when holding on them with the mouse, also the screen is resized their size to be as well and the position to be in the correct place like it was so before resizing.

I've made it draggable and it does resize as it should: https://sourceb.in/nKxqkBzSbp, but there is a problem, after resizing the dragging doesn't work as it should. A guy told me that after resizing I need to apply a resize event on the view of the screen. Like that: https://sourceb.in/W66ROV0wFh. I added code on line 61, so it resizes itself, but now it's not being on the position it should when the window is resized.

Should I make code for that too or there is a better way ?


Pages: [1]
anything