-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
68ae9fd
commit 521dee3
Showing
5 changed files
with
33 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System.ComponentModel.Composition; | ||
|
||
using DPackRx.Services; | ||
|
||
using Microsoft.VisualStudio.Text.Editor; | ||
using Microsoft.VisualStudio.Utilities; | ||
|
||
namespace DPackRx.Features.Miscellaneous | ||
{ | ||
[Export(typeof (IWpfTextViewCreationListener))] | ||
[ContentType("text")] | ||
[TextViewRole(PredefinedTextViewRoles.Zoomable)] | ||
internal class MouseWheelZoomListener : IWpfTextViewCreationListener | ||
{ | ||
#pragma warning disable CS0414 | ||
[Import] | ||
internal ISharedServiceProvider _serviceProvider = null; | ||
#pragma warning restore CS0414 | ||
|
||
#region IWpfTextViewCreationListener Members | ||
|
||
public void TextViewCreated(IWpfTextView textView) | ||
{ | ||
textView.Options.SetOptionValue<bool>(DefaultWpfViewOptions.EnableMouseWheelZoomId, false); | ||
} | ||
|
||
#endregion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters