I was trying different ways to compare if cursor end position is bigger than 90% of the document total size it will set an element to 90% height.
menu opens when i drag a