Skip to content

Commit

Permalink
Fixed logic bug around computing Y coordinate of mouse location relative
Browse files Browse the repository at this point in the history
to ViewportTop.

Added icon and screenshot.
  • Loading branch information
Noah Richards committed Jan 15, 2010
1 parent 1cfd075 commit 057d117
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 1 deletion.
6 changes: 6 additions & 0 deletions TripleClick.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="tripleclick-icon.png">
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="tripleclick-screenshot.png">
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
Expand Down
20 changes: 20 additions & 0 deletions TripleClick.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TripleClick", "TripleClick.csproj", "{8E966A68-EC5D-43C1-A5C9-1EE23F1B89E4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8E966A68-EC5D-43C1-A5C9-1EE23F1B89E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8E966A68-EC5D-43C1-A5C9-1EE23F1B89E4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8E966A68-EC5D-43C1-A5C9-1EE23F1B89E4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8E966A68-EC5D-43C1-A5C9-1EE23F1B89E4}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion TripleClickMouseProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void StopDrag()

Point RelativeToView(Point position)
{
return new Point(position.X - _view.ViewportLeft, position.Y - _view.ViewportTop);
return new Point(position.X + _view.ViewportLeft, position.Y + _view.ViewportTop);
}

#endregion
Expand Down
2 changes: 2 additions & 0 deletions source.extension.vsixmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<Locale>1033</Locale>
<MoreInfoUrl>http://blogs.msdn.com/noahric</MoreInfoUrl>
<License>ms-pl.txt</License>
<Icon>tripleclick-icon.png</Icon>
<PreviewImage>tripleclick-screenshot.png</PreviewImage>
<SupportedProducts>
<VisualStudio Version="10.0">
<Edition>VST_All</Edition>
Expand Down
Binary file added tripleclick-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tripleclick-screenshot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 057d117

Please sign in to comment.