GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Initial touch down on UI Slider sets Slider.value to 0 · Issue #352 · TouchScript/TouchScript

Initial touch down on UI Slider sets Slider.value to 0 #352

New issue
Copy link
New issue
Copy link
Open
Open
Initial touch down on UI Slider sets Slider.value to 0#352
Copy link

Description

@cloudcover
cloudcover
opened on Jan 22, 2020
Issue body actions

The TouchScript examples lay out how it's reasonably frictionless to add Buttons to a Screen Space Overlay Canvas which are covered by the Hit Screen Space UI option in Standard Layer.
Simple Button taps as a use case don't seem to create any issues, but there is an annoying quirk with Sliders. On initial press, the value of the Slider always moves to 0 first, and then upon subsequent drag actions its value correctly snaps to wherever the user's finger is in screen space.

This happens even on the Screen Space Overlay Canvas demo with the four colored buttons, if you add a Slider to the same Canvas.

I noticed in the documentation there was an acknowledgement that GUI elements like Buttons "sort of" work and are more amenable to creating a Custom Layer. Is this an example of a situation where that's necessary? I've tried some hacky workarounds like disabling the interactable property of the slider and then re-enabling it on Drag, but I was hoping I wouldn't have to resort to a workaround.

Activity

  1. BMI24 commented on Sep 23, 2023

    @BMI24
    BMI24
    on Sep 23, 2023
    More actions

    For anyone stumbling upon this: this was probably fixed here: https://github.com/TouchScript/TouchScript/blob/74f58155ddcd42c0a37428f2dd6814e05ec70215/Source/Assets/TouchScript/Scripts/Layers/UI/TouchScriptInputModule.cs#L580C28-L580C28 (but it never made it to the last official release). You could just manualy add the line to the code in your project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.