You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sometimes, it is necessary to avoid doing blocking stuff while the user is interacting with the controls. Unfortunately, with the current implementation, the super.isInTouchMode() always returned true. Maybe implement an overriden version that utilizes the already present touch event and simply returns false if neither the colorPicker nor any linked bars are touched by the user.
Would possibly require public getters/setters in colorpicker for the mUserIsMovingPointer variable, so that that it can be set from bars as well and developers only need to query colorPicker.isInTouchMode().
The text was updated successfully, but these errors were encountered:
Hm, yes and no. See here: http://android-developers.blogspot.de/2008/12/touch-mode.htmlisInTouchMode() returns true, if the user interacted last with the device via touch screen. If (on older devices) the user used the trackball, or (on newer devices) the user used arrow keys from USB keyboard or the mouse, the function will return false.
To expand my request then, let's not overwrite this from super inherited function, but introduce a new function that merely returns true, if a user is touching the color picker or any attached Bars.
I personally need this functionality to prevent the user from accidentally activating a control that is in close proximity to the ColorPicker and reacts "onFingerOver" (similar to JavaScript's onMouseOver). It happens sometimes, and for devices with smaller screensize I do not want to change the UI, i.e. increasing the empty space between them.
sometimes, it is necessary to avoid doing blocking stuff while the user is interacting with the controls. Unfortunately, with the current implementation, the
super.isInTouchMode()
always returnedtrue
. Maybe implement an overriden version that utilizes the already present touch event and simply returnsfalse
if neither the colorPicker nor any linked bars are touched by the user.Would possibly require public getters/setters in colorpicker for the
mUserIsMovingPointer
variable, so that that it can be set from bars as well and developers only need to querycolorPicker.isInTouchMode()
.The text was updated successfully, but these errors were encountered: