I don't want the app to die (reload - disconnected message ) when user is still scrolling website on mobile( with finger) and with mouse, mouse wheel... Etc?
There has to be an easy JS way?
I am a newbie to JS.
Anyone please?
Best
Luke
library(shiny)library(shinyjs)
shinyApp( ui = fluidPage( tags$head(tags$script(src="https://cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js")), useShinyjs(), div(id = "foo", style = "height:800px;", textOutput("val_a")) ), server = function(input, output) { a <<- 1 shinyjs::onevent("mousewheel", "foo", myFunc()) myFunc = function() { output$val_a = renderText({a <<- a + 1; a}) } })--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/fd2cb604-17e5-4ca3-a798-c773f443d95b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.