Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit cb2c6d4

Browse files
committed
Fixed pull to refresh safari 🚀
1 parent b9e88dc commit cb2c6d4

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

_includes/dependencies-js-blog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_SVG"></script>
1919
{% endif %}
2020
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
21-
<script type="text/javascript" src="/assets/js/index.blog.min.js?rev=8fbd96347a3b5ec25c624bf508e0088f"></script>
21+
<script type="text/javascript" src="/assets/js/index.blog.min.js?rev=7878cb2532f75ed3af6934acec4c2205"></script>
2222
<script type="text/javascript">
2323
ChicioCodingBlog.init('{{ include.track-category }}', {{ include.shouldActivatePullToRefresh }})
2424
</script>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"/assets/js/index.blog.min.js?rev=8fbd96347a3b5ec25c624bf508e0088f",
1+
"/assets/js/index.blog.min.js?rev=7878cb2532f75ed3af6934acec4c2205",

_js/blog/pull-to-refresh.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const pullToRefresh = (trackingCategory: string): void => {
2424
invariant(pullToRefreshLoaderElement instanceof HTMLElement)
2525
invariant(pullableContent instanceof HTMLElement)
2626

27-
const pullToRefreshElementHeight: number = pullToRefreshElement.offsetHeight
27+
const pullToRefreshElementHeight: number = 100
2828
const pullToRefreshStatusRepository = createPullToRefreshStatusRepository()
2929
const decelerationFactor = 0.5
3030
let dragStartPoint = createTouchCoordinates(0, 0)

_jsbuild/blog/pull-to-refresh.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const pullToRefresh = (trackingCategory) => {
2424
invariant(pullToRefreshLoaderElement instanceof HTMLElement)
2525
invariant(pullableContent instanceof HTMLElement)
2626

27-
const pullToRefreshElementHeight = pullToRefreshElement.offsetHeight
27+
const pullToRefreshElementHeight = 100
2828
const pullToRefreshStatusRepository = createPullToRefreshStatusRepository()
2929
const decelerationFactor = 0.5
3030
let dragStartPoint = createTouchCoordinates(0, 0)

_scripts/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ rm -Rf _site/
1313
# to be able to connect to the jekyll local instance from other device on the
1414
# same network (e.g. your smartphone)
1515
# See https://stackoverflow.com/questions/16608466/connect-to-a-locally-built-jekyll-server-using-mobile-devices-in-the-lan
16-
bundle exec jekyll serve --host=localhost
16+
bundle exec jekyll serve --host=0.0.0.0

assets/js/index.blog.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.babel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ const build = gulp.series(
291291
'lint',
292292
'bundle-home-scripts',
293293
'bundle-blog-scripts',
294-
//'images',
294+
'images',
295295
'fonts',
296296
'models',
297297
'rev-js-home',

0 commit comments

Comments
 (0)