mouse case handled for dragging #467; also some renderer cleanup and performance improvements