changeset 1334:5ff6e187084f

browser (slideshow): fixed `active` value detection for fullscreen
author Goffi <goffi@goffi.org>
date Sat, 15 Aug 2020 13:03:10 +0200
parents 3411ec23c389
children f2ce8072d89d
files libervia/pages/_browser/slideshow.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/pages/_browser/slideshow.py	Fri Aug 14 09:31:32 2020 +0200
+++ b/libervia/pages/_browser/slideshow.py	Sat Aug 15 13:03:10 2020 +0200
@@ -121,7 +121,7 @@
             print("fullscreen is not available on this browser")
         else:
             if active is None:
-                active = fullscreen_elt != None
+                active = fullscreen_elt == None
             if active:
                 request_fullscreen()
             else: