Release v1.4.1

This commit is contained in:
Zeno Rocha 2015-10-09 09:08:02 +02:00
parent 17aedf5221
commit b3ad81570e
4 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "clipboard",
"version": "1.4.0",
"version": "1.4.1",
"description": "Modern copy to clipboard. No Flash. Just 2kb",
"license": "MIT",
"main": "dist/clipboard.js",

2
dist/clipboard.js vendored
View File

@ -281,7 +281,7 @@ var ClipboardAction = (function () {
this.fakeElem = document.createElement('textarea');
this.fakeElem.style.position = 'absolute';
this.fakeElem.style.left = '-9999px';
this.fakeElem.style.top = document.body.scrollTop + 'px';
this.fakeElem.style.top = (window.pageYOffset || document.documentElement.scrollTop) + 'px';
this.fakeElem.setAttribute('readonly', '');
this.fakeElem.value = this.text;
this.selectedText = this.text;

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "clipboard",
"version": "1.4.0",
"version": "1.4.1",
"description": "Modern copy to clipboard. No Flash. Just 2kb",
"repository": "zenorocha/clipboard.js",
"license": "MIT",