adding mouseReleased, related to issue #270