Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Way to increase the hit area for lines on a mobile device?

    According to this page:
    https://smartclient.com/smartgwt/javadoc/com/smartgwt/client/docs/MobileDevelopment.html

    many controls implement an expanded hit area for clicks or drags so that finger touches that are technically outside of the drawn area of the control still activate the control


    When I visit my application on a tablet https://dev.3dmathpuzzles.com/3dmp/D...itherlink.html
    it is very hard to touch on the lines. Most of the touches go to the boxes.

    I think I need to expand the hit area of lines more than the default.
    Is there a way to do that?

    #2
    That automatic hit area expansion does happen for things like Window close buttons, but there isn't automatic expansion for DrawPane / DrawItems. That would require layering another, larger, transparent element over each interactive item.

    This is actually easier than it sounds, as you can just write a DrawItem subclass that automatically creates a larger copy of itself, floating above.

    Comment


      #3
      Originally posted by Isomorphic View Post
      there isn't automatic expansion for DrawPane / DrawItems ... you can just write a DrawItem subclass that automatically creates a larger copy of itself, floating above.
      OK, I will work on that. Thanks!

      Comment


        #4
        I wrote a custom subclass to create a transparent hit area on top of the lines and it is working well. Thanks for the suggestion!

        Comment

        Working...
        X