Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
This question was closed Apr 04, 2016 at 09:36 AM by meat5000 for the following reason:

'Best Practise' and discussion goes on the forum.

avatar image
0
Question by · Apr 04, 2016 at 09:08 AM · androiduitouchdragevent

What is the best way to implement a more responsive custom drag event with Scroll Rect?

One relatively unaddressed challenge I have noticed while developing for Android in Unity is that while touch detection is rapid, drag detection is not. Precisely, imitating the "flicking" rapid swipe response that is built into phones and is expected from professional utility apps. Rather, by default Unity apps require what feels like several dozen milliseconds (or more) to register a touch before the begin drag method is called. It's undoubtedly irritating. Others pointed it out to me, and I have noticed it myself.

This seems like a simple issue to fix, and I have some ideas if it hasn't been solved already. I thought it would be smart to share the issue and solutions with the rest of the community. Hopefully there is a graceful answer.

I am aware that there are already solutions to improve Scroll Rects but from what I have seen there is not one to address this issue.

My best guess is that the issue belongs to the IBeginDragHandler as that is what is in charge of detecting a drag. So one obvious solution is to make an alternate custom event system that checks for input more frequently (maybe using InvokeRepeating?) and use that to manually call OnBeginDrag from a class that extends ScrollRect (ScrollRectEx, for example). This way, we can forcibly override that method to ensure even a very rapid drag is detected. The built in event would have to be thrown away before it bubbles, of course.

But this sounds expensive. I will try it anyways, but it seems like folly. I am not sure how often Unity checks for the start of a drag, or if perhaps unity has a threshold of input to ignore, but something is causing rapid scrolling to be hit-or-miss, at best.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

UI button events not working on android 3 Answers

Drag a sprite from anywhere in the screen 1 Answer

Android touches pass through UI elements 6 Answers

One of canvas disappears after build on Android 0 Answers

When I publish my iOS/Android app, a transparent game object overlaps other 2D game objects 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges