Mercurial > hg > orthanc-stone
comparison Framework/Viewport/WebAssemblyViewport.cpp @ 1249:964c89e15e7e broker
ViewportController::HandleMouseMove() returning a Boolean for invalidation
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 07 Jan 2020 14:23:24 +0100 |
parents | a4bb8c2dd211 |
children | 0ca50d275b9a |
comparison
equal
deleted
inserted
replaced
1248:2a8359503f3b | 1249:964c89e15e7e |
---|---|
158 if (that.compositor_.get() != NULL && | 158 if (that.compositor_.get() != NULL && |
159 that.controller_->HasActiveTracker()) | 159 that.controller_->HasActiveTracker()) |
160 { | 160 { |
161 PointerEvent pointer; | 161 PointerEvent pointer; |
162 ConvertMouseEvent(pointer, *mouseEvent, *that.compositor_); | 162 ConvertMouseEvent(pointer, *mouseEvent, *that.compositor_); |
163 that.controller_->HandleMouseMove(pointer); | 163 if (that.controller_->HandleMouseMove(pointer)) |
164 that.Invalidate(); | 164 { |
165 that.Invalidate(); | |
166 } | |
165 } | 167 } |
166 | 168 |
167 return true; | 169 return true; |
168 } | 170 } |
169 | 171 |