private void CodeToolWindow_MouseMove(object sender, MouseEventArgs e) { if (!mouse_is_down || !PluginOptions.MiniCodeColumnEnabled || shutting_down) { return; } TextView textView = CodeRush.TextViews.Active; if (textView != null) { int line = e.Y * last_height_divisor; int center_line = line; if (center_line > 10) { center_line -= 10; } textView.MakeVisible(line, 0); textView.CenterLine(center_line); Invalidate(); } }