Add buffer clear, fix mouse scroll