Mercurial > hg > orthanc-stone
comparison Framework/Scene2DViewport/OneGesturePointerTracker.cpp @ 1365:c7d98d750224 broker
reduce verbosity + some comments
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Sat, 18 Apr 2020 14:35:39 +0200 |
parents | ab81ee8fce1f |
children | 30deba7bc8e2 |
comparison
equal
deleted
inserted
replaced
1364:dd50d0852ae2 | 1365:c7d98d750224 |
---|---|
39 { | 39 { |
40 // pointer up is only called for the LAST up event in case of a multi-touch | 40 // pointer up is only called for the LAST up event in case of a multi-touch |
41 // gesture | 41 // gesture |
42 ORTHANC_ASSERT(currentTouchCount_ > 0, "Wrong state in tracker"); | 42 ORTHANC_ASSERT(currentTouchCount_ > 0, "Wrong state in tracker"); |
43 currentTouchCount_--; | 43 currentTouchCount_--; |
44 LOG(INFO) << "currentTouchCount_ becomes: " << currentTouchCount_; | 44 //LOG(TRACE) << "currentTouchCount_ becomes: " << currentTouchCount_; |
45 if (currentTouchCount_ == 0) | 45 if (currentTouchCount_ == 0) |
46 { | 46 { |
47 LOG(INFO) << "currentTouchCount_ == 0 --> alive_ = false"; | 47 //LOG(TRACE) << "currentTouchCount_ == 0 --> alive_ = false"; |
48 alive_ = false; | 48 alive_ = false; |
49 } | 49 } |
50 } | 50 } |
51 | 51 |
52 void OneGesturePointerTracker::PointerDown(const PointerEvent& event) | 52 void OneGesturePointerTracker::PointerDown(const PointerEvent& event) |
53 { | 53 { |
54 // additional touches are not taken into account but we need to count | 54 // additional touches are not taken into account but we need to count |
55 // the number of active touches | 55 // the number of active touches |
56 currentTouchCount_++; | 56 currentTouchCount_++; |
57 LOG(INFO) << "currentTouchCount_ becomes: " << currentTouchCount_; | 57 //LOG(TRACE) << "currentTouchCount_ becomes: " << currentTouchCount_; |
58 | 58 |
59 /** | 59 /** |
60 * 2019-12-06 (SJO): Patch to have consistent behavior when mouse | 60 * 2019-12-06 (SJO): Patch to have consistent behavior when mouse |
61 * leaves the canvas while the tracker is still active, then | 61 * leaves the canvas while the tracker is still active, then |
62 * button is released while out-of-canvas. Such an event is not | 62 * button is released while out-of-canvas. Such an event is not |