Mercurial > hg > orthanc-stone
diff Samples/Common/RtViewerView.h @ 1406:5d7ee14dc1eb
Mouse wheel handler is now OK in SDL and Wasm
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Thu, 30 Apr 2020 00:25:55 +0200 |
parents | 3e644f6fadd4 |
children | 15173a383a00 |
line wrap: on
line diff
--- a/Samples/Common/RtViewerView.h Wed Apr 29 22:06:58 2020 +0200 +++ b/Samples/Common/RtViewerView.h Thu Apr 30 00:25:55 2020 +0200 @@ -78,6 +78,8 @@ unsigned int canvasWidth, unsigned int canvasHeight); + void Scroll(int delta); + void Invalidate(); void FitContent(); void RetrieveGeometry(); @@ -101,7 +103,7 @@ private: void SetInfoDisplayMessage(std::string key, std::string value); boost::shared_ptr<RtViewerApp> GetApp(); - static boost::shared_ptr<IViewport> CreateViewport(const std::string& canvasId); + boost::shared_ptr<IViewport> CreateViewport(const std::string& canvasId); void DisplayInfoText(); void HideInfoText(); void DisplayFloatingCtrlInfoText(const PointerEvent& e);