Skip to content

Commit

Permalink
fix fullscreen detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ts-thomas committed May 8, 2021
1 parent b5740d3 commit 8e8668f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ __Get Latest Stable Build (Recommended):__
</tr>
<tr>
<td>spotlight.bundle.js</td>
<td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.6/dist/spotlight.bundle.js" target="_blank">Download</a></td>
<td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.6/dist/spotlight.bundle.js" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.6/dist/spotlight.bundle.js</a></td>
<td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.7/dist/spotlight.bundle.js" target="_blank">Download</a></td>
<td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.7/dist/spotlight.bundle.js" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.7/dist/spotlight.bundle.js</a></td>
</tr>
<tr>
<td colspan=3">
Expand All @@ -105,14 +105,14 @@ __Get Latest Stable Build (Recommended):__
</tr>
<tr>
<td>spotlight.min.js</td>
<td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.6/dist/js/spotlight.min.js" target="_blank">Download</a></td>
<td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.6/dist/js/spotlight.min.js" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.6/dist/js/spotlight.min.js</a></td>
<td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.7/dist/js/spotlight.min.js" target="_blank">Download</a></td>
<td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.7/dist/js/spotlight.min.js" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.7/dist/js/spotlight.min.js</a></td>
</tr>
<tr></tr>
<tr>
<td>spotlight.min.css</td>
<td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.6/dist/css/spotlight.min.css" target="_blank">Download</a></td>
<td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.6/dist/css/spotlight.min.css" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.6/dist/css/spotlight.min.css</a></td>
<td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.7/dist/css/spotlight.min.css" target="_blank">Download</a></td>
<td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.7/dist/css/spotlight.min.css" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.7/dist/css/spotlight.min.css</a></td>
</tr>
<tr>
<td colspan=3">
Expand All @@ -121,25 +121,25 @@ __Get Latest Stable Build (Recommended):__
</tr>
<tr>
<td>ES6 Modules</td>
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/spotlight/tree/0.7.6/src/js" target="_blank">Download</a></td>
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/spotlight/tree/0.7.7/src/js" target="_blank">Download</a></td>
<td>The <i>/src/js</i> folder of this Github repository</td>
</tr>
<tr></tr>
<tr>
<td>LESS Files (source)</td>
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/spotlight/tree/0.7.6/src/css" target="_blank">Download</a></td>
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/spotlight/tree/0.7.7/src/css" target="_blank">Download</a></td>
<td>The <i>/src/css</i> folder of this Github repository</td>
</tr>
<tr></tr>
<tr>
<td>spotlight.css (compiled)</td>
<td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.6/src/css/spotlight.css" target="_blank">Download</a></td>
<td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.6/src/css/spotlight.css" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.6/src/css/spotlight.css</a></td>
<td><a href="https://github.com/nextapps-de/spotlight/raw/0.7.7/src/css/spotlight.css" target="_blank">Download</a></td>
<td><a href="https://rawcdn.githack.com/nextapps-de/spotlight/0.7.7/src/css/spotlight.css" target="_blank">https://rawcdn.githack.com/nextapps-de/spotlight/0.7.7/src/css/spotlight.css</a></td>
</tr>
<tr></tr>
<tr>
<td>src.zip</td>
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/spotlight/tree/0.7.6/dist" target="_blank">Download</a></td>
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/spotlight/tree/0.7.7/dist" target="_blank">Download</a></td>
<td>Download all source files including image original resources.</td>
</tr>
</table>
Expand All @@ -152,7 +152,7 @@ npm install spotlight.js

__Get Latest Nightly (Do not use for production!):__

Just exchange the version number from the URLs above with "master", e.g.: "/spotlight/__0.7.6__/dist/" into "/spotlight/__master__/dist".
Just exchange the version number from the URLs above with "master", e.g.: "/spotlight/__0.7.7__/dist/" into "/spotlight/__master__/dist".

> If you are using markup on anchor elements to inject the library, then it is recommended to load the lib inside your head section of the document. Because that will better prevent the original behavior of the anchor tag (e.g. when library wasn't fully loaded on page start).
Expand Down Expand Up @@ -233,7 +233,7 @@ You can also load modules via CDN, e.g.:

```html
<script type="module">
import Spotlight from "https://unpkg.com/[email protected].6/src/js/spotlight.js";
import Spotlight from "https://unpkg.com/[email protected].7/src/js/spotlight.js";
</script>
```

Expand Down
4 changes: 2 additions & 2 deletions dist/js/spotlight.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/spotlight.bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spotlight.js",
"version": "0.7.62",
"version": "0.7.7",
"description": "Modern HTML5 Image Gallery",
"homepage": "https://github.com/nextapps-de/spotlight/",
"author": "Thomas Wilkerling",
Expand Down
2 changes: 1 addition & 1 deletion src/js/spotlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ function resize_listener(){
// entering the fullscreen state manually needs to be hide the fullscreen icon, because
// the exit fullscreen handler will not work due to a browser restriction

is_fullscreen || toggleDisplay(maximize, (screen.availHeight - window.outerHeight) >= 0);
is_fullscreen || toggleDisplay(maximize, (screen.availHeight - window.innerHeight) > 0);
}

//update_scroll();
Expand Down

0 comments on commit 8e8668f

Please sign in to comment.