Fix editor mouse drawing (#57)

Almost fixed event loop