개정판 f06cce07
CTRL+마우스휠 : 이미지 상하 이동
Change-Id: I94b4f84a8bab8e9612e50c4f19b0d4bc957f8149
KCOM/Views/MainMenu.xaml.cs | ||
---|---|---|
905 | 905 |
|
906 | 906 |
private void zoomAndPanControl_MouseWheel(object sender, MouseWheelEventArgs e) |
907 | 907 |
{ |
908 |
if (ViewerDataModel.Instance.IsPressCtrl) |
|
908 |
var instance = ViewerDataModel.Instance; |
|
909 |
|
|
910 |
if (instance.IsPressCtrl) |
|
909 | 911 |
{ |
910 | 912 |
if (e.Delta > 0) |
911 | 913 |
{ |
912 |
pageNavigator.GotoPage(Convert.ToInt32(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.CurrentPage.PageNumber) - 1); |
|
914 |
if (0 < instance.ContentOffsetY + instance.ContentViewportHeight) |
|
915 |
{ |
|
916 |
Vector dragOffset = new Vector(0, e.Delta); |
|
917 |
MoveZoomAndPanControl(dragOffset); |
|
918 |
} |
|
919 |
//else |
|
920 |
//{ |
|
921 |
// pageNavigator.GotoPage(Convert.ToInt32(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.CurrentPage.PageNumber) - 1); |
|
922 |
//} |
|
913 | 923 |
} |
914 |
else |
|
924 |
else if(e.Delta < 0)
|
|
915 | 925 |
{ |
916 |
pageNavigator.GotoPage(Convert.ToInt32(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.CurrentPage.PageNumber) + 1); |
|
926 |
if (instance.ContentHeight > instance.ContentOffsetY + instance.ContentViewportHeight) |
|
927 |
{ |
|
928 |
Vector dragOffset = new Vector(0,e.Delta); |
|
929 |
MoveZoomAndPanControl(dragOffset); |
|
930 |
} |
|
931 |
//else |
|
932 |
//{ |
|
933 |
// pageNavigator.GotoPage(Convert.ToInt32(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.CurrentPage.PageNumber) + 1); |
|
934 |
//} |
|
917 | 935 |
} |
918 |
|
|
919 | 936 |
} |
920 | 937 |
else |
921 | 938 |
{ |
내보내기 Unified diff