Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Touch scrolling with Raspberry Pi

spiritcore
2021-06-16
2021-07-05
  • spiritcore

    spiritcore - 2021-06-16

    Hi,
    I'm using Codesys v3.5 SP17.
    I have a project with Web Visualization and it works OK on Chromium with kiosk mode.
    The problem is that I can't scroll a frame with the touch screen, I can only click on the position of the scroll bar and it changes but not scrolling as it should on touch.
    I do have all the Chormium flags and it seems to work on any other website (tried google search results and more) only on the WebVisu it doesn't so it leads me to believe that the issue is with Codesys and not with Chormium.
    The frame has scrolling enabled in the settings of course and I enabled the multitouch on the Visualization manager.
    Any help would be appreciated.
    Thanks!

     
  • m.prestel

    m.prestel - 2021-06-30

    Hey,
    If you get scrollbars in a frame when you have multitouch enabled, your browser reports that it does not support any multitouch events.
    Therefore the visualization falls back to a mouse only behaviour.

    This should also be visible in the browser console log, which should report this information.

    Best regards,
    Marcel

     

    Last edit: m.prestel 2021-06-30
    • spiritcore

      spiritcore - 2021-07-01

      I do have scrollbars actually.
      But I enabled touch events in the browser and it does work with other websites, only in the WebVisu it doesn't.

       
  • m.prestel

    m.prestel - 2021-07-01

    Whats the output of the console?

     
  • spiritcore

    spiritcore - 2021-07-01

    No output that relates to this.
    I see error messages because I updated the compiled softwre so the local WebVisu is trying to reconnect.

     
  • spiritcore

    spiritcore - 2021-07-01

    I unchecked the "Scroll elements with scrollbar" and it seems to be working now (altough not smooth like other websites).
    Thanks!

     
  • spiritcore

    spiritcore - 2021-07-01

    BTW, Is it possible to make scroll when touching other elements in the frame?
    I have many labels but when I try touching those when trying to scroll it doesn't work, only when I touch an empty spot on the frame.

     
  • m.prestel

    m.prestel - 2021-07-01

    If this element has any input action, this will of course be prioritized. e.g. a button click is always more important than moving the frame

     
  • spiritcore

    spiritcore - 2021-07-01

    My labels doesn't have any input action.
    Just plain text...

     
  • m.prestel

    m.prestel - 2021-07-01

    Tooltip? Anything like that?

     
  • spiritcore

    spiritcore - 2021-07-01

    No, only lables.
    But the labels are in a group with buttons, is it possible that it affects the labels?

     
  • m.prestel

    m.prestel - 2021-07-01

    Could be. Not sure to be honest from the top of my head.

     
  • spiritcore

    spiritcore - 2021-07-01

    Ok. I will try to ungroup the elements and test.

     
  • m.prestel

    m.prestel - 2021-07-01

    IF the issue still exists, you could attach your project and provide Steps to repeat for me do look into it ;)

     
  • spiritcore

    spiritcore - 2021-07-05

    Ok, I found a solution using the Bring to Foreground option.

     

Log in to post a comment.