Mercurial > hg > orthanc-stone
diff Framework/Viewport/WebAssemblyViewport.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 | 5b731e176236 |
children | 1b8e37770d78 |
line wrap: on
line diff
--- a/Framework/Viewport/WebAssemblyViewport.h Mon Apr 06 09:17:40 2020 +0200 +++ b/Framework/Viewport/WebAssemblyViewport.h Mon Apr 06 16:57:56 2020 +0200 @@ -53,7 +53,7 @@ std::unique_ptr<ICompositor> compositor_; std::unique_ptr<ViewportController> controller_; std::unique_ptr<IViewportInteractor> interactor_; - bool enableEmscriptenEvents_; + bool enableEmscriptenMouseEvents_; static EM_BOOL OnRequestAnimationFrame(double time, void *userData); @@ -90,7 +90,7 @@ to interactors is finished. */ WebAssemblyViewport(const std::string& canvasId, - bool enableEmscriptenEvents = true); + bool enableEmscriptenMouseEvents = true); void PostConstructor();