File tree 1 file changed +6
-4
lines changed
FloatingBubbleView/src/main/java/com/torrydo/floatingbubbleview/bubble
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ class FloatingBubble(
176
176
private fun customTouch () {
177
177
178
178
val dpi = getX()
179
- val max_xy_move = dpi / 7
179
+ val max_xy_move = dpi / 22
180
180
// Log.d("<>", "dpi | xy: ${dpi} - ${max_xy_move}");
181
181
// Log.d("<>", "sdfasfasdf ${context.resources.configuration}: ");
182
182
@@ -215,10 +215,12 @@ class FloatingBubble(
215
215
ignoreClick = false
216
216
}
217
217
218
+ MotionEvent .ACTION_UP -> {
219
+ ignoreClick = false
220
+ }
221
+
218
222
MotionEvent .ACTION_MOVE -> {
219
- if (abs(event.x) > max_xy_move || abs(event.y) > max_xy_move) {
220
- ignoreClick = true
221
- }
223
+ ignoreClick = abs(event.rawX - rawPointOnDown.x) > max_xy_move || abs(event.rawY - rawPointOnDown.y) > max_xy_move
222
224
}
223
225
}
224
226
You can’t perform that action at this time.
0 commit comments