Answer the question
In order to leave comments, you need to log in
Windows that can be moved in Angular?
Good day!
I sat down at the angular, I'm trying to make a window that can be moved by its title.
Window layout:
<div class='windows'>
<div id='title'>Title</div>
<div id='content'>Content</div>
</div>
Answer the question
In order to leave comments, you need to log in
so, what about onmousedown/onmouseup events to add/remove the draggable class to the entire window?
or even hover over title (onmouseover/onmouseout)
https://www.w3schools.com/js/tryit.asp?filename=tr...
https://www.w3schools.com/js/tryit.asp?filename =tr...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question