Mercurial > hg > orthanc-stone
diff Framework/Viewport/WebGLViewport.h @ 1346:df8bf351c23f broker
The flag that allows the WebAssemblyViewport to
**not** register the mouse events in the canvas
(in case they are handled by other means) is now
correctly passed down from the factory method.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 06 Apr 2020 16:57:56 +0200 |
parents | ab81ee8fce1f |
children | 6abd819aa534 |
line wrap: on
line diff
--- a/Framework/Viewport/WebGLViewport.h Mon Apr 06 09:17:40 2020 +0200 +++ b/Framework/Viewport/WebGLViewport.h Mon Apr 06 16:57:56 2020 +0200 @@ -30,8 +30,8 @@ { private: OpenGL::WebAssemblyOpenGLContext context_; - - WebGLViewport(const std::string& canvasId); + + WebGLViewport(const std::string& canvasId, bool enableEmscriptenMouseEvents); protected: virtual void Paint(ICompositor& compositor, @@ -40,7 +40,7 @@ virtual void UpdateSize(ICompositor& compositor) ORTHANC_OVERRIDE; public: - static boost::shared_ptr<WebGLViewport> Create(const std::string& canvasId); + static boost::shared_ptr<WebGLViewport> Create(const std::string& canvasId, bool enableEmscriptenMouseEvents = true); virtual ~WebGLViewport();